Thread:Extension talk:LDAP Authentication/Failed to Bind

We are connecting to AD from a windows 1012 Virtual Server. I have tried many combination and permutation and finally got the system to indicate that it "may be" connecting but we never seem to be able to get a bind completed. No matter what settings I set there is always the same outcome. There are a few thing that I am sure are not correct but everything appears right as far as I can see. For example the IP of the machine I am logging on with appears as the user name which to me seems wrong. However no matter what settings I change it does not clear up this problem. I also don't see this result in any of the other posts here is I assume it is wrong.

Any help would be appreciated.

Current version Wiki version = 1.21.3 ldap Authentincation = 2.0d Php & apache = xampp 1.8.3 (PhP 5.5.3)

My configuration is as follows:

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array( '', ); $wgLDAPServerNames = array( "" => " ..local" ); $wgLDAPUseLocal = false; $wgLDAPEncryptionType = array( "" => "clear" ); $wgLDAPPort = array( '' => 389); $wgLDAPSearchStrings = array( "" => "USER-NAME@.LOCAL" ); $wgLDAPSearchAttributes = array('' => 'sAMAccountName'); $wgLDAPBaseDNs = array( '' => 'dc=,dc=local'); $wgLDAPDebug = 3; $wgDebugLogGroups['ldap'] = 'c:\debug.log'; $wgLDAPLowerCaseUsername = array( '' => true); $wgLDAPGroupSearchNestedGroups = array('' => true);

Here is the debug when I try to log in.

2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering validDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c User is using a valid domain (). 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Setting domain as:  2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getCanonicalName 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Username is:  2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Munged username:  2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getCanonicalName 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Username is: <IP ADDRESS of PC I AM ON> 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Munged username: <IP ADDRESS of PC I AM ON> 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getCanonicalName 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Username is: <IP ADDRESS of PC I AM ON> 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Munged username: <IP ADDRESS of PC I AM ON> 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering userExists 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering authenticate for username <UserName> 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering Connect 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Using TLS or not using encryption. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Using non-standard port: 389 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Using servers: ldap://<Servername>.<DOMAIN>.local:389 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c PHP's LDAP connect method returned true (note, this does not imply it connected to the server). 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Configuration set to lowercase username. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getSearchString 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Doing a straight bind 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c userdn is: <UserName>@<DOMAIN>.LOCAL 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Binding as the user 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Failed to bind as <UserName>@<DOMAIN>.LOCAL 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering allowPasswordChange 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering modifyUITemplate 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session. 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Entering getDomain 2013-11-28 18:17:31 SRV-WIKI1 my_wiki: 2.0c Pulling domain from session.