Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Ldap Search Hangs.

by converter (Priest)
on Dec 02, 2005 at 12:50 UTC ( #513580=note: print w/replies, xml ) Need Help??

in reply to Ldap Search Hangs.

Your slow response times are probably due to a problem with your slapd configuration or a resource issue (heavy IO on the server or a networking problem).

What is loglevel set to in slapd.conf? A loglevel setting of anything other than 1 (the default) or zero has the potential to generate a lot of additional I/O. A setting of -1 can bring a loaded server to its knees because it logs all debug information and operation stats.

If loglevel is zero or one then the cause of the slow responses probably lies elsewhere. Setting the loglevel to -1 and running a few queries is the quickest way to learn if there are any problems with your slapd configuration (don't leave loglevel set to -1 any longer than required for troubleshooting if this is a production server).

Off the top of my head, a couple of things that can lead to slow reponses are: incorrectly configured backend, authentication mechanisms, network configuration or failure.

If logging reveals a problem on the server you should probably consult the OpenLDAP mailing lists, they're very helpful.

The settings for loglevel are documented in the slapd.conf man page.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513580]
[Cosmic37]: rather than the value of $mydt which is a date time strong such as 2016-01-01 12:30:56
[Corion]: Cosmic37: No, but maybe $mydt doesn't contain what you think it does, or it contains characters that are special in a regular expression? Try if( $line =~ /\Q$mydt\E/) { ... for a literal match
[Cosmic37]: I mean string grrr
[Corion]: Maybe add an else branch in which you print what the values of $line and $mydt are?
[Cosmic37]: ah thank you I will try
[Cosmic37]: you are right $mydt did not contain what I expected... :-D I will now think :-D
[Cosmic37]: crunch...grind... whirr...gnashing metal crunching cogs...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-06-29 17:04 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (673 votes). Check out past polls.