Topic on Extension talk:LDAPAuthentication2

46.133.5.92 (talkcontribs)

Hi there,

LDAP AD Authentication work fine with "$LDAPAuthentication2UsernameNormalizer = false;" I use this manual: LDAP hub/Migration from extension LDAPAuthentication

but if I set "$LDAPAuthentication2UsernameNormalizer = true;" as recommended in manual, get following error:

[226dad3678b7525b2a4d5a08] /index.php/Special:PluggableAuthLogin MWException from line 78 of /var/www/html/extensions/LDAPAuthentication2/src/PluggableAuth.php: The UsernameNormalizer for LDAPAuthentiation2 should be callable

Backtrace:

#0 /var/www/html/extensions/LDAPAuthentication2/src/PluggableAuth.php(53): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->normalizeUsername()

#1 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(36): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->authenticate()

#2 /var/www/html/includes/specialpage/SpecialPage.php(600): PluggableAuthLogin->execute()

#3 /var/www/html/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run()

#4 /var/www/html/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#5 /var/www/html/includes/MediaWiki.php(940): MediaWiki->performRequest()

#6 /var/www/html/includes/MediaWiki.php(543): MediaWiki->main()

#7 /var/www/html/index.php(53): MediaWiki->run()

#8 /var/www/html/index.php(46): wfIndexMain()

#9 {main}


List extensions:

LDAPAuthentication2-REL1_35-58e281c.tar.gz

LDAPGroups-REL1_35-97e04b2.tar.gz

LDAPProvider-REL1_35-ca854c1.tar.gz

LDAPUserInfo-REL1_35-39cca83.tar.gz

LdapAuthentication-REL1_35-dbc56f1.tar.gz

PluggableAuth-REL1_35-2a465ae.tar.gz

mediawiki-1.35.1.tar.gz

46.133.28.171 (talkcontribs)

Sorry maybe i don't need "$LDAPAuthentication2UsernameNormalizer" it for "earlier Version".

Use this function for normalizing username for LDAP, for example 'strtolower'. Needed after migration from earlier Version. (defaults to "" )

Osnard (talkcontribs)

The example you are referring to was wrong.Sorry for that. Please set `$LDAPAuthentication2UsernameNormalizer = 'strtolower';` if required

Reply to "UsernameNormalizer"