Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^3: Using Mozilla::LDAP instead of Net::LDAP

by strat (Canon)
on Sep 27, 2006 at 08:23 UTC ( #575105=note: print w/replies, xml ) Need Help??

in reply to Re^2: Using Mozilla::LDAP instead of Net::LDAP
in thread Using Mozilla::LDAP instead of Net::LDAP

  • 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."

    • Comment on Re^3: Using Mozilla::LDAP instead of Net::LDAP

    Replies are listed 'Best First'.
    Re^4: Using Mozilla::LDAP instead of Net::LDAP
    by LittleGreyCat (Scribe) on Oct 03, 2006 at 09:54 UTC

      there is error handling in the code; however the symptoms are:
      (1) A search completes without error, returning the expected (large amount of) data.
      (2) The next searches fails 'Unable to contact LDAP server' (or similar).

      The server log shows that the connection was unbound after the successful search in (1) although the code did not issue an 'unbind'.

      This in turn explains the unexpected failure in (2) as there is no longer a connection.

      I have not yet located a log which shows any error associated with the connection which unexpectedly 'unbound'.

      I have so far been unable to reproduce the fault on a test system, and I am reluctant to propose upping the server logging on an extremely heavily loaded live service.


      Dave R.

      Nothing succeeds like a budgie with no teeth.

        To be able to help you, I need more specific information:

        1. the output of the following line after the first search: $conn->printError() if $conn->getErrorCode(); If there's no output, then also put it into the loop where you are fetching the entries.
        2. which LDAP Server you use (also which patch level; e.g. IBM Tivoli Directory Server 5.2 without patches sometimes behaves strange)
        3. see some code, especially the connect/bind and search properties.

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


          I am now down into the depths of Solaris using ptree and the like, and pretty sure that this is an isssue with the X.500 directory we are using.

          Thanks for your help so far; what I have found is that the Mozilla LDAP we are using is not very flexible; there is very little exposed in the 'search' method and the 'API' code seems to break everything.

          Investigation from the Perl end does not seem to be a good prospect.

          I am now going to throw this at our directory supplier.


          Dave R

          Nothing succeeds like a budgie with no teeth.

    Log In?

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://575105]
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (5)
    As of 2018-05-27 18:03 GMT
    Find Nodes?
      Voting Booth?