Thread:Extension talk:LDAP Authentication/Some users unable to auth via LDAP some can?/reply (3)

Changing $wgLDAPUseLocal to false did not resolve the issue. I am getting incorrect password for the user and it doesn't appear to connect to the LDAP server. When I connect with an identical user that had the same username in mediawiki they are able to access the wiki just fine.

Here is the debug output from the login attempt after changing $wgLDAPUseLocal to false. Both "Testuser" & "Testuser2" were not granted access. My user "Sarah" was granted access. 2010-03-15 20:09:01 wikidb: Entering validDomain 2010-03-15 20:09:01 wikidb: User is using a valid domain. 2010-03-15 20:09:01 wikidb: Setting domain as: TestDomain 2010-03-15 20:09:01 wikidb: Entering getCanonicalName 2010-03-15 20:09:01 wikidb: Username isn't empty. 2010-03-15 20:09:01 wikidb: Munged username: Sarah 2010-03-15 20:09:01 wikidb: Entering authenticate 2010-03-15 20:09:01 wikidb: 2010-03-15 20:09:01 wikidb: Entering Connect 2010-03-15 20:09:01 wikidb: Using TLS or not using encryption. 2010-03-15 20:09:01 wikidb: Using servers:  ldap://server1.domain.tld ldap://server2.domain.tld 2010-03-15 20:09:01 wikidb: Using TLS 2010-03-15 20:09:01 wikidb: Connected successfully 2010-03-15 20:09:01 wikidb: Entering getSearchString 2010-03-15 20:09:01 wikidb: Doing a proxy bind 2010-03-15 20:09:01 wikidb: Entering getUserDN 2010-03-15 20:09:01 wikidb: Created a regular filter: (uid=Sarah) 2010-03-15 20:09:01 wikidb: Entering getBaseDN 2010-03-15 20:09:01 wikidb: basedn is not set for this type of entry, trying to get the default basedn. 2010-03-15 20:09:01 wikidb: Entering getBaseDN 2010-03-15 20:09:01 wikidb: basedn is dc=domain,dc=tld 2010-03-15 20:09:01 wikidb: Using base: dc=domain,dc=tld 2010-03-15 20:09:01 wikidb: Fetched username is not a string (check your hook code...). This message can be safely ignored if you do not have the SetUsernameAttributeFromLDAP hook defined. 2010-03-15 20:09:01 wikidb: userdn is: cn=Sarah LastName,ou=department,ou=type,dc=domain,dc=tld 2010-03-15 20:09:01 wikidb: 2010-03-15 20:09:01 wikidb: Binding as the user 2010-03-15 20:09:01 wikidb: Bound successfully 2010-03-15 20:09:01 wikidb: Entering getGroups 2010-03-15 20:09:01 wikidb: Entering checkGroups 2010-03-15 20:09:01 wikidb: Entering getPreferences 2010-03-15 20:09:01 wikidb: Entering synchUsername 2010-03-15 20:09:01 wikidb: Authentication passed 2010-03-15 20:09:01 wikidb: Entering updateUser 2010-03-15 20:09:08 wikidb: Entering validDomain 2010-03-15 20:09:08 wikidb: User is not using a valid domain. 2010-03-15 20:09:08 wikidb: Setting domain as: invaliddomain 2010-03-15 20:09:08 wikidb: Entering allowPasswordChange 2010-03-15 20:09:08 wikidb: Entering modifyUITemplate 2010-03-15 20:09:09 wikidb: Entering validDomain 2010-03-15 20:09:09 wikidb: User is not using a valid domain. 2010-03-15 20:09:09 wikidb: Setting domain as: invaliddomain 2010-03-15 20:09:09 wikidb: Entering allowPasswordChange 2010-03-15 20:09:09 wikidb: Entering modifyUITemplate 2010-03-15 20:09:18 wikidb: Entering validDomain 2010-03-15 20:09:18 wikidb: User is using a valid domain. 2010-03-15 20:09:18 wikidb: Setting domain as: TestDomain 2010-03-15 20:09:18 wikidb: Entering getCanonicalName 2010-03-15 20:09:18 wikidb: Username isn't empty. 2010-03-15 20:09:18 wikidb: Munged username: Testuser 2010-03-15 20:09:18 wikidb: Entering allowPasswordChange 2010-03-15 20:09:18 wikidb: Entering modifyUITemplate 2010-03-15 20:09:18 wikidb: Entering validDomain 2010-03-15 20:09:18 wikidb: User is not using a valid domain. 2010-03-15 20:09:18 wikidb: Setting domain as: invaliddomain 2010-03-15 20:09:18 wikidb: Entering allowPasswordChange 2010-03-15 20:09:18 wikidb: Entering modifyUITemplate 2010-03-15 20:11:46 wikidb: Entering validDomain 2010-03-15 20:11:46 wikidb: User is using a valid domain. 2010-03-15 20:11:46 wikidb: Setting domain as: TestDomain 2010-03-15 20:11:46 wikidb: Entering getCanonicalName 2010-03-15 20:11:46 wikidb: Username isn't empty. 2010-03-15 20:11:46 wikidb: Munged username: Testuser2 2010-03-15 20:11:46 wikidb: Entering allowPasswordChange 2010-03-15 20:11:46 wikidb: Entering modifyUITemplate 2010-03-15 20:11:46 wikidb: Entering validDomain 2010-03-15 20:11:46 wikidb: User is not using a valid domain. 2010-03-15 20:11:46 wikidb: Setting domain as: invaliddomain 2010-03-15 20:11:46 wikidb: Entering allowPasswordChange 2010-03-15 20:11:46 wikidb: Entering modifyUITemplate