[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
OpenLDAP Perl Module (XS)
Hey,
Im not sure if this is the correct 'forum' to be submitting this query
- but its the one that stood out to me as the most obvious place. Anyway
my query is: Has anyone written a Perl interface to the OpenLDAP
libraries? The reason I ask is that Net::LDAP is far too slow, and
Mozilla::LDAP is far too hard to install (I have managed to get it to
work on Solaris i86, but cannot get it to work on Solaris Sparc). I have
also downloaded Net::LDAPapi 1.43 and patched it as advised in the
OpenLDAP FAQ but it fails to compile:
[dj@ice Net-LDAPapi-1.43-patched-build]$ make
gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -
fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386
-mtune=pentium4 -DVERSION=\"1.43\" -DXS_VERSION=\"1.43\" -fPIC "-
I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" -DOPENLDAP
LDAPapi.c
LDAPapi.xs: In function `av2modvals':
LDAPapi.xs:108: error: `na' undeclared (first use in this function)
LDAPapi.xs:108: error: (Each undeclared identifier is reported only once
LDAPapi.xs:108: error: for each function it appears in.)
LDAPapi.xs: In function `parse1mod':
LDAPapi.xs:217: error: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search':
LDAPapi.xs:600: error: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search_s':
LDAPapi.xs:636: error: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search_st':
LDAPapi.xs:682: error: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_get_dn':
LDAPapi.xs:875: error: `sv_undef' undeclared (first use in this
function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_first_attribute':
LDAPapi.xs:969: error: `sv_undef' undeclared (first use in this
function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_next_attribute':
LDAPapi.xs:991: error: `sv_undef' undeclared (first use in this
function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_set_rebind_proc':
LDAPapi.xs:1070: error: too few arguments to function
`ldap_set_rebind_proc'
LDAPapi.xs:1080: warning: passing arg 2 of `ldap_set_rebind_proc' from
incompatible pointer type
LDAPapi.xs:1080: error: too few arguments to function
`ldap_set_rebind_proc'
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_url_parse':
LDAPapi.xs:1201: error: `sv_undef' undeclared (first use in this
function)
make: *** [LDAPapi.o] Error 1
That occurs on both Solaris and Fedora Core 3 (both intel boxes).
Anyway, if no one has written a perl XS interface to OpenLDAP if anyone
wants to id buy you a slab, because im getting pretty stressed out over
this. It has been 4 weeks of pain so far from the initial realisation of
how slow Net::LDAP was - to trying Mozilla::LDAP and spending a week
getting it compiled.. and then discovery it doesnt run properly on Sparc
(despite communication with its author - and even he has no advice for
me).
Thanks heaps in advance,
David
This email and any files transmitted with it are confidential and intended solely for the
use of the individual or entity to whom they are addressed. Please notify the sender
immediately by email if you have received this email by mistake and delete this email
from your system. Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the organisation.
Finally, the recipient should check this email and any attachments for the presence of
viruses. The organisation accepts no liability for any damage caused by any virus
transmitted by this email.