Thread:Extension talk:LDAP Authentication/Renaming users not possible, if not new name does not exist in AD

Hi, renaming users (Renameuser extension bundled with Mediawiki 1.19 and 1.20rc2) is not possible anymore, if the new username does not exist in the Active Directory.

I think it is a bug, because this extension allows to login as "local" mediawiki user.

debug log
Debug log output for renaming OldUsername (AD) to NewUsername (non-AD).

2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getCanonicalName 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Username is: OldUsername 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering validDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c User is using a valid domain (domain.local). 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering Connect 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Using TLS or not using encryption. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Using servers: ldap://srv1.domain.local:389 ldap://srv2.domain.local:389 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c PHP's LDAP connect method returned true (note, this does not imply it connected to the server). 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getUserDN 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Doing a proxy bind 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Created a regular filter: (sAMAccountName=OldUsername) 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getBaseDN 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c basedn is not set for this type of entry, trying to get the default basedn. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getBaseDN 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Using base: OU=Users,OU=***,DC=domain,DC=local 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Username munged by hook: OldUsername 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Using LDAPUsername: OldUsername 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Munged username: OldUsername 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getCanonicalName 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Username is: NewUsername 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering validDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c User is using a valid domain (domain.local). 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering Connect 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Using TLS or not using encryption. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Using servers: ldap://srv1.domain.local:389 ldap://srv2.domain.local:389 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c PHP's LDAP connect method returned true (note, this does not imply it connected to the server). 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getUserDN 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Doing a proxy bind 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Created a regular filter: (sAMAccountName=NewUsername) 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getBaseDN 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c basedn is not set for this type of entry, trying to get the default basedn. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getBaseDN 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Entering getDomain 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Pulling domain from session. 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Using base: OU=Users,OU=***,DC=domain,DC=local 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Couldn't find an entry 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Username munged by hook: OldUsername 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Using LDAPUsername: OldUsername 2012-10-25 08:50:13 SRV*** wiki_119_test: 2.0c Munged username: OldUsername

Config and log are anonymized.