Last modified: 2012-08-23 06:06:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41576, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39576 - Default User canonical lower casing not working
Default User canonical lower casing not working
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
LdapAuthentication (Other open bugs)
master
All All
: Unprioritized major (vote)
: ---
Assigned To: Ryan Lane
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-23 05:31 UTC by Raj
Modified: 2012-08-23 06:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Raj 2012-08-23 05:31:27 UTC
Version : 2.0a

    By default the plugin is not converting the user names entered into lower case. But by default this should happen as per line 406

Line 406 : case 'LowerCaseUsernameScheme':
              global $wgLDAPLowerCaseUsernameScheme;
             // Default set to true for backwards compatibility with
             // versions < 2.0a
             return self::setOrDefault( $wgLDAPLowerCaseUsernameScheme, $domain, true );

Reason of this not happening is where ever this configuration is used it is used as 'LowercaseUsernameScheme' not as 'LowerCaseUsernameScheme'

Line 950 : 	if ( $this->getConf( 'LowercaseUsernameScheme' ) ) {
		$username = strtolower( $username );
		}

Line 1160 : if ( $this->getConf( 'LowercaseUsernameScheme' ) ) {
				$canonicalname = strtolower( $canonicalname );
			}
    Due to this case mismatch in the code duplicate users are getting created when the AD users enter their user names in different cases.
Comment 1 Ryan Lane 2012-08-23 06:06:05 UTC
This was fixed in ce74a3c767600d63ae71f5f8726458bbda5540f5 at Sun Apr 22 14:15:18 2012 -0700. It's been fixed for a while. Please use the master version.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links