Thread:Extension talk:LDAP Authentication/Very slow LDAP Authentication

Hi,

I am experiencing an issue where LDAP Authentication is taking 30 - 40 seconds to log in. It does log in successfully eventually.

All I can see with debugs turned on is this:

2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering validDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d User is not using a valid domain. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Setting domain as: SUBNET 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering allowPasswordChange 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering modifyUITemplate 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:45:59 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering validDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d User is using a valid domain (SUBNET). 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Setting domain as: SUBNET 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getCanonicalName 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Username is: Benh 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Munged username: Benh 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering authenticate for username Benh 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering Connect 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d PHP's LDAP connect method returned true (note, this does not imply it connected to the server). 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getSearchString 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Doing a straight bind 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:46:06 wiki.subnet.internal servicedesk_wiki: 2.0d Binding as the user 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Bound successfully 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getUserDN 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getBaseDN 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d basedn is not set for this type of entry, trying to get the default basedn. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getBaseDN 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Couldn't find an entry 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Fetched UserDN: 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getGroups 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering checkGroups 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getPreferences 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Authentication passed 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering updateUser 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Entering getDomain 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Pulling domain from session. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d User has a token, setting domain in user options. 2013-07-23 01:47:09 wiki.subnet.internal servicedesk_wiki: 2.0d Saving user settings.

(Note that the timestamps on this are wrong, yet the timezone on the box - CentOS LAMP - are correct.)

Can anyone suggest any fixes to this? The config looks correct from what I've been able to find.

It did used to login almost immediately, but we were still in the very early stages of setting up the wiki at that stage, so I'm not 100% sure what has changed in the interim.

Cheers, Ben