Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by strat (Canon)
on Sep 27, 2006 at 08:23 UTC ( [id://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.8.8.32.11.32"

    • 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
      Strat,

      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.

      Regards

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

          strat,

          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.

          Regards

          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: note [id://575105]
    help
    Chatterbox?
    and the web crawler heard nothing...

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

      No recent polls found