new blog 2.0


0x0B. [LPIC-301] LDAP - Development

As LDAP is constantly gaining on popularity so are numerous applications based on it. If you happen to work with LDAP on the regular basis and use it for something more than keeping whitepages with contacts for your Thunderbird, you will need to write some scripts eventually. LPIC requires Perl knowledge in this respect. If I was to recommend a compact guide to it, I would point you in the direction of "LDAP System Administration" by Gerald Carter (It seems like the whole exam is based on it anyway). It describes the basics about Net::LDAP module, but requires from you some background in Perl.

Getting Libraries...
Libraries are available on CPAN, you can get all the required libraries downloading Bundle::Net::LDAP.

root@hackpospolita:/home/oozie# cpan
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Bundle::Net::LDAP
CPAN: Storable loaded ok
... and answer a lot of questions :)

I think the best method to learn scripting is to try doing it yourself. Reference documentation can be also found on the PERL.ORG. Find some example scripts with their brief descriptions below:

Anonymous unencrypted bind - searching for UID

[ yet to come ]

{Python, C/C++, PHP}

No comments: