Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Using Mozilla::LDAP instead of Net::LDAP

by LittleGreyCat (Scribe)
on Sep 25, 2006 at 10:47 UTC ( [id://574712]=perlquestion: print w/replies, xml ) Need Help??

LittleGreyCat has asked for the wisdom of the Perl Monks concerning the following question:

Esteemed Monday Morning Monks,

Is there any other poor benighted person out there using (pretty old) Mozilla::LDAP to access directories instead of the Net::LDAP which comes in the Active State repository? I am asking here because the general Mozilla area of mailing lists and news groups seems to be still in chaos after the move away from the 'Netscape' hierarchy and there doesn't seem to be any activity in the directories area.

If you are out there, please wave a hand (or point me towards a more focussed active area for debate). I would appreciate some help with a current problem.

I am unable due to time and budget constraints to currently contemplate swapping out the old for the new.

TIA

Dave R.

Nothing succeeds like a budgie with no teeth.

2006-09-26 Retitled by Corion, as per Monastery guidelines
Original title: 'Mozilla::LDAP'

  • Comment on Using Mozilla::LDAP instead of Net::LDAP

Replies are listed 'Best First'.
Re: Using Mozilla::LDAP instead of Net::LDAP
by strat (Canon) on Sep 26, 2006 at 08:31 UTC

    Why don't you just ask your question? I worked with PerLDAP some years ago, and may or may not be able to help you.

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

      Strat,

      O.K. - here we go :-)

      I am searching a directory using an authenticated bind.

      I am using the same connection for a number of searches; essentially navigating down the X.500 DIT to extract leaf entries from some (but not all) limbs of the directory.

      On the test system this always works.

      On the live system this often works.

      When searching a particularly large subtree I seem to get all the data back, but the connection is shown in the DSA log as unbinding, although I have not issued an 'unbind'.

      The next search fails (obviously); I then have to bind to the directory again before I can search again.

      I have no real evidence as to why the connection has unbound. It could be a timeout condition under load, perhaps.
      My main problem is that I can't see any way under Mozilla::LDAP to set the timeout period for a search.
      I can see in Net::LDAP that I can specify a timeout when I bind, which may be inherited by the searches, but the interface through Mozilla::LDAP seems to be very simplistic.

      Any suggestions on how to improve the resilience of the search would be welcome.

      Regards

      Dave R.

      Nothing succeeds like a budgie with no teeth.
      • What does the Server log tell you?
      • Do you do error handling in your code? if yes, the server will tell you about timeouts etc. Which error messages is given?
      • Best regards,
        perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

      One light has just dawned.

      Mozilla::LDAP::API give some (self confessed poorly documented) access to the 'C' libraries underneath.

      Not a lot of good with the documentation as shipped, but I happen to have a copy of the Tim Howes/Mark Smith LDAP book.
      I had discounted this as it was firmly aimed at 'C' programmers, but coupled with the API it may give me a way forward.

      I am still no closer, however, to working out why the session kills itself after delivering the data.

      Cheers

      Dave R.

      Nothing succeeds like a budgie with no teeth.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://574712]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found