Thread:Extension talk:LDAP Authentication/Another Cannot Bind As User question

I've got Mediawiki 1.16.4 installed and freshly updated on a Ubuntu server, PHP 5.3.2, and a new copy of this extension, r85544. I've got this config setup in LocalSettings.php: And this is my result in the log file: 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Entering validDomain 2011-04-15 21:15:04 mediawiki-mw_: 1.2e User is using a valid domain (ad01). 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Setting domain as: ad01 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Entering getCanonicalName 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Username isn't empty. 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Munged username: Xyzuser 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Entering userExists 2011-04-15 21:15:04 mediawiki-mw_: 1.2e 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Entering authenticate 2011-04-15 21:15:04 mediawiki-mw_: 1.2e 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Entering Connect 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Using SSL 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Using non-standard port: 636 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Using servers:  ldaps://ad01.server.local:636 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Connected successfully 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Entering getSearchString 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Doing a straight bind 2011-04-15 21:15:04 mediawiki-mw_: 1.2e userdn is: sAMAccountName=xyzuser,OU=Users,OU=IT,DC=TMLIRP,DC=LOCAL 2011-04-15 21:15:04 mediawiki-mw_: 1.2e 2011-04-15 21:15:04 mediawiki-mw_: 1.2e Binding as the user 2011-04-15 21:15:09 mediawiki-mw_: 1.2e Failed to bind as sAMAccountName=xyzuser,OU=Users,OU=IT,DC=TMLIRP,DC=LOCAL 2011-04-15 21:15:09 mediawiki-mw_: 1.2e with password: Passw0rd 2011-04-15 21:15:09 mediawiki-mw_: 1.2e Error: Can't contact LDAP server 2011-04-15 21:15:09 mediawiki-mw_: 1.2e Error Binding to LDAP: No additional information is available. 2011-04-15 21:15:09 mediawiki-mw_: 1.2e Entering allowPasswordChange 2011-04-15 21:15:09 mediawiki-mw_: 1.2e Entering modifyUITemplate The 4th line from the bottom of the log is a result of an extra bit I added to the code. In the function bindAs, in the "if (!$bind)" stanza I added to try to get as much info as possible: $err = ldap_error($this->ldapconn); $this->printDebug( "Error: $err", NONSENSITIVE ); It looks like it connects on my default user account, but then the bind fails and the error given seems strange since it just connected to that server. I changed the sensitivity on the password debug line to make sure that comes through OK.

I'm also not sure if I have the right search string. I've tried various permutations, but nothing works, it all pretty much results in the same error, which seems to have nothing to do with the search, anyway. I had previously written a similar kind of module for a Joomla connection to the same server, and that works fine. So any help you can provide would naturally be appreciated.