You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by David J Radunz <da...@staff.netspace.net.au> on 2005/01/20 04:12:30 UTC

PerLDAP (Mozilla::LDAP::Conn / Mozilla::LDAP::API)

Hey Guys,

	Sorry to bother you all, I have been trying to work this out for the
last 3 days and I really have no idea how to solve it. Originally we
were using Net::LDAP, but decided it was too slow - and after profiling
it we discovered the main flaw was its text parsing (taking 60% of the
time). Anyway, we then found PerLDAP (www.perldap.org) and benchmarked
it against Net::LDAP - the result was that PerLDAP was 10 times faster.
It took me ages to get Mozilla::LDAP::Conn installed (on Solaris 5.9) -
the C-SDK wasnt easily installed from CVS - but the one from the tar.gz
(which is older) installed fine.. however I was only able to get
Mozilla::LDAP 1.5 to compile against it 1.4 didnt compile.

	Cutting to the chase (aka what this all has to do with mod_perl)...
The module works fine under standard perl / apache - but under mod_perl
it will not connect to ldap, it returns the error code 81 (translated -
LDAP server has gone away).

My questions are:

a) Does anyone have experience installing PerLDAP ?
b) Does anyone know how I can debug the C module under mod_perl to find
out what is happening?

Thanks so much - sorry for being long winded ;)

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. 


Re: PerLDAP (Mozilla::LDAP::Conn / Mozilla::LDAP::API)

Posted by Stas Bekman <st...@stason.org>.
David J Radunz wrote:
[...]
> b) Does anyone know how I can debug the C module under mod_perl to find
> out what is happening?

What seems to be the problem? e.g. take a look at:
http://perl.apache.org/docs/2.0/devel/debug/c.html#Debug_notes

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com