[Date Prev][Date Next]
RE: ldapmodule for perl
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of V Alex Brennen
> On Thu, 20 Mar 2003, Robert Canary wrote:
> > I have been browsing over allot ldap modules for perl, which ldap
> > modules dose everyone suggest?
> I've used NET::LDAP in the past, and it worked OK.
> Eventually, I wound up porting most of my code to C in
> order to make it easier for me to develop, maintain,
> and for me to install on a number of different systems
> and platforms that I was working with.
> That said, I would suggest you just write your code in C. The
> C LDAP API is really very easy to use. If you would like
> some source code examples of C programs to search and modify
> directory contents, I could help you out with that.
> I've written several C programs which are CGI and command line
> based for Linux and AIX that work with directory entries in
> openLDAP and principals on MIT Kerberos KDC's.
> If you really are dead set on perl though, NET::LDAP will
> get the job done. Its homepage is:
In my experience Net::LDAP is rather slow. Pathetically slow. I can
understand why people using it would advise you to just write in C instead.
We use Net::LDAPapi which was written by Clayton Donley and subsequently
abandoned. This module uses XSUBs to call libldap directly; it is very fast,
very nearly as fast as running in straight C code. At Symas we've taken the
last public release of Net::LDAPapi and added a few LDAPv3/OpenLDAP API
features to it - support for binding to an LDAP URL, support for StartTLS,
SASL binding, and some other miscellaneous extensions.
We also use it with EmbPerl in Apache for easy web access to LDAP. I highly
recommend both of these modules; they make this kind of programming trivially
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support