Thread:Extension talk:LDAP Authentication/Weird Error - it says I'm connecting and failing to bind... however...

According to my log (see below), I am successfully connecting to my LDAP server, but failing to bind. I have tested the username and binding using command-line LDAP tools, and they appear to be correct.

But then I was trying different things, I accidentally mistyped my server name. The weird thing is, in the logs the system _still_ says I connected successfully and failed to bind - but that's impossible, as the server that I was trying to talk to doesn't exist. MediaWiki: 1.16.5 PHP: 5.3.6 (apache2handler) MySQL: 5.5.8-enterprise-commercial-advanced-log LDAP Authentication Plugin: 1.2e Linux: 2.6.18-194.el5 (RedHat)

Config:

Log Results: 2011-06-16 21:26:54 wikidb: 1.2e Entering validDomain 2011-06-16 21:26:54 wikidb: 1.2e User is not using a valid domain. 2011-06-16 21:26:54 wikidb: 1.2e Setting domain as: invaliddomain 2011-06-16 21:26:55 wikidb: 1.2e Entering allowPasswordChange 2011-06-16 21:26:55 wikidb: 1.2e Entering modifyUITemplate 2011-06-16 21:27:13 wikidb: 1.2e Entering validDomain 2011-06-16 21:27:13 wikidb: 1.2e User is using a valid domain (egovtn). 2011-06-16 21:27:13 wikidb: 1.2e Setting domain as: egovtn 2011-06-16 21:27:13 wikidb: 1.2e Entering getCanonicalName 2011-06-16 21:27:13 wikidb: 1.2e Username isn't empty. 2011-06-16 21:27:13 wikidb: 1.2e Munged username: Uname 2011-06-16 21:27:13 wikidb: 1.2e Entering userExists 2011-06-16 21:27:13 wikidb: 1.2e 2011-06-16 21:27:13 wikidb: 1.2e Entering authenticate 2011-06-16 21:27:13 wikidb: 1.2e 2011-06-16 21:27:13 wikidb: 1.2e Entering Connect 2011-06-16 21:27:13 wikidb: 1.2e Using TLS or not using encryption. 2011-06-16 21:27:13 wikidb: 1.2e Using servers:  ldap://blah:1389 2011-06-16 21:27:13 wikidb: 1.2e Connected successfully 2011-06-16 21:27:13 wikidb: 1.2e Lowercasing the username: Uname 2011-06-16 21:27:13 wikidb: 1.2e Entering getSearchString 2011-06-16 21:27:13 wikidb: 1.2e Doing a straight bind 2011-06-16 21:27:13 wikidb: 1.2e userdn is: uid=uname,ou=People,o=egovtn 2011-06-16 21:27:13 wikidb: 1.2e 2011-06-16 21:27:13 wikidb: 1.2e Binding as the user 2011-06-16 21:27:13 wikidb: 1.2e Failed to bind as uid=uname,ou=People,o=egovtn 2011-06-16 21:27:13 wikidb: 1.2e with password: password 2011-06-16 21:27:13 wikidb: 1.2e Entering allowPasswordChange 2011-06-16 21:27:13 wikidb: 1.2e Entering modifyUITemplate And from the command line: $telnet blah 1389 blah/1389: Name or service not known $php -m | grep ldap ldap I get the same thing in my logs if I put a valid or invalid LDAP hostname.

Thoughts?