Using Perl and LDAP
A walkthrus of the basics: making connections, creating and modifying entries, and searching.
So, you have your LDAP server all set up and purring along happily — great! You can if you want perform all your interactions with LDAP — adding, deleting, and modifying records — by writing LDIF files and using the command line commands. And sometimes that’s fine. But it can also be very useful to be able to script those interactions: for example, to create a script which will take arguments and then add a new user. What you need at this point is perl-ldap — a collection of Perl modules providing an OO interface to LDAP servers. Unlike some other perl/LDAP implementations, perl-ldap doesn’t require a C compiler, but runs as straight perl, making it more cross-platform compatible. It is under active development, and a reasonably recent version is available packaged for most distros (e.g. libnet-ldap-perl for Debian/Ubuntu). Or you can install it from CPAN with the command…
Please log in to view this content.
Read More
- The Party of Gno
- Intro to CUDA
- Helpful Tools for Software Developers
- The Github Hall of Fame
- Book'em, Github.
Comments
|