webmaster
2014-03-04 10:46:42 UTC
A page in your DokuWiki was added or changed. Here are the details:
Date : 2014/03/04 11:46
Browser : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0
IP-Address : 88.173.78.196
Hostname : mne69-10-88-173-78-196.fbx.proxad.net
Old Revision: none
New Revision: http://lsc-project.org/wiki/documentation/plugins/executable/perl_ldif
Edit Summary: created
User : coudot
====== Perl wrappers for LDIF inputs ======
===== Presentation =====
This script catches LDIF inputs from LSC executable plugin, and allows you to easily parse data with Net::LDAP API.
This script can be used for ADD, REMOVE, UPDATE and RENAME operations.
===== Installation =====
Script is available in the ''scripts/'' directory of Executable plugin source, and shipped with packages.
You need those prerequisites on the system running the script:
* Perl
* Perl Net::LDAP module
Script must be executable.
===== Configuration =====
==== Script ====
There is one script for all operations (ADD, REMOVE, UPDATE and RENAME).
<file:xml>
<exec:addScript>/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec:addScript>
<exec:updateScript>/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec:updateScript>
<exec:removeScript>/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec:removeScript>
<exec:renameScript>/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec:renameScript>
</file>
==== Variables ====
No variables needed.
===== Hacking =====
By default, the script does nothing:
<file:perl>
if ( $entry->changetype() eq "add" ) {
}
if ( $entry->changetype() eq "modify" ) {
}
if ( $entry->changetype() eq "delete" ) {
}
if ( $entry->changetype() eq "modrdn" or $entry->changetype() eq "moddn" ) {
}
</file>
See [[http://search.cpan.org/dist/perl-ldap/lib/Net/LDAP/Entry.pod|Net::LDAP::Entry]] POD to see how get data from the $entry object.
You can then write any Perl code or launch any command trough [[http://perldoc.perl.org/functions/exec.html|Perl exec function]].
Date : 2014/03/04 11:46
Browser : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0
IP-Address : 88.173.78.196
Hostname : mne69-10-88-173-78-196.fbx.proxad.net
Old Revision: none
New Revision: http://lsc-project.org/wiki/documentation/plugins/executable/perl_ldif
Edit Summary: created
User : coudot
====== Perl wrappers for LDIF inputs ======
===== Presentation =====
This script catches LDIF inputs from LSC executable plugin, and allows you to easily parse data with Net::LDAP API.
This script can be used for ADD, REMOVE, UPDATE and RENAME operations.
===== Installation =====
Script is available in the ''scripts/'' directory of Executable plugin source, and shipped with packages.
You need those prerequisites on the system running the script:
* Perl
* Perl Net::LDAP module
Script must be executable.
===== Configuration =====
==== Script ====
There is one script for all operations (ADD, REMOVE, UPDATE and RENAME).
<file:xml>
<exec:addScript>/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec:addScript>
<exec:updateScript>/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec:updateScript>
<exec:removeScript>/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec:removeScript>
<exec:renameScript>/var/lib/lsc/lsc-executable-add-modify-delete-modrdn.pl</exec:renameScript>
</file>
==== Variables ====
No variables needed.
===== Hacking =====
By default, the script does nothing:
<file:perl>
if ( $entry->changetype() eq "add" ) {
}
if ( $entry->changetype() eq "modify" ) {
}
if ( $entry->changetype() eq "delete" ) {
}
if ( $entry->changetype() eq "modrdn" or $entry->changetype() eq "moddn" ) {
}
</file>
See [[http://search.cpan.org/dist/perl-ldap/lib/Net/LDAP/Entry.pod|Net::LDAP::Entry]] POD to see how get data from the $entry object.
You can then write any Perl code or launch any command trough [[http://perldoc.perl.org/functions/exec.html|Perl exec function]].
--
This mail was generated by DokuWiki at
http://lsc-project.org/wiki/
This mail was generated by DokuWiki at
http://lsc-project.org/wiki/