Extension talk:LDAPUserInfo
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Dependency Error
Fatal error: Uncaught ExtensionDependencyError: LDAPUserInfo is not compatible with the current installed version of LDAPProvider (1.0.2), it requires: 1.0.1. in /var/www/html/includes/registration/ExtensionRegistry.php:334 Stack trace: #0 /var/www/html/includes/registration/ExtensionRegistry.php(186): ExtensionRegistry->readFromQueue(Array) #1 /var/www/html/includes/Setup.php(143): ExtensionRegistry->loadFromQueue() #2 /var/www/html/includes/WebStart.php(81): require_once('/var/www/html/i...') #3 /var/www/html/index.php(41): require('/var/www/html/i...') #4 {main} thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 334
how can I fix for LDAPProvider 1.0.2? 42.60.86.250 (talk) 17:48, 29 February 2020 (UTC)
- I simply deactivated this extension. I *think* I had only installed it because LDAP authentication wouldn't work without it, but now it seems to work fine. (MediaWiki 1.34.0 with freshly downloaded PluggableAuth, LDAPProvider, and LDAPAuthentication2.) SocJusWiz (talk) 22:55, 1 March 2020 (UTC)
- Thanks for your advice, I will try to use LDAPAuthentication2. 203.116.81.218 (talk) 03:10, 2 March 2020 (UTC)
- This is a known bug and has been fixed recently. Please download the latest version of LDAPUserInfo. Osnard (talk) 07:29, 2 March 2020 (UTC)
Realnameattribute returning CN
Even though I have "realnameattribute": "displayname", in my ldapprovider json file, LDAPUserInfo keeps putting the CN into the RealName wiki field. Any ideas how to get it to use the displayname? 150.148.14.146 (talk) 12:17, 30 March 2020 (UTC)
- The extension version is 1.31. 150.148.14.146 (talk) 12:19, 30 March 2020 (UTC)
- Can you please share your configuration? Osnard (talk) 08:49, 31 March 2020 (UTC)
- Due to a server crash, I had to rebuild my entire configuration. This time, rather than a static json, I used the example from LDAP hub/Migration from extension LDAPAuthentication, and it is now working correctly. 150.148.14.146 (talk) 14:46, 3 April 2020 (UTC)
- Great, thanks for the feedback! Osnard (talk) 14:14, 7 April 2020 (UTC)
- Same problem here, these settings sound confusingly similar, some explanation of their relation and how to configue them would be very helpful! 188.206.108.132 (talk) 11:37, 29 September 2021 (UTC)
Display name vs User Account Name - LDAP
I'm just finishing up my LDAPAuthentication2 Stack setup (thanks so much to @Osnard). I'm able to login just fine as an LDAP user. I have the Group Restrictions working through authorization. I am using a json file for my LDAP connection. In that file, I have set both the "realnameattribute": "cn" within the conenction info and:
"userinfo": {
"attributes-map": {
"realname": "cn"
}
},
However, every time I login, my username is displayed in the top right corner and in the history rather than my real name? Apache Studio is telling me that my CN is set to my real name... Any suggestions here? 69.204.38.38 (talk) 15:05, 29 May 2020 (UTC)
- Didn't mean to post this anonymously... forgot to login first... Rosenblitt (talk) 15:06, 29 May 2020 (UTC)
- Is the realname properly set on "Special:Preferences"? Does it show up in the output of
LDAPProvider/maintenance/ShowUserInfo.php
. be aware that this is case sensitive, so if theShowUserInfo.php
lists "CN" but you have configured "cn" it might probably not work. Osnard (talk) 12:19, 5 June 2020 (UTC)
Additional fields from LDAP
Is it possible to get additional fields from AD, such as position, department and save them to the user's profile? Derek Jones Smr (talk) 13:37, 8 December 2023 (UTC)
- One can actually fetch additonal data and map them to user preferences. Unfortunately there may be no fields for position and department in the default MediaWiki user preferences.
- See
"properties.gender": "gender"
part in the example. this will set the MediaWiki user preference "gender" to the value of the "gender" attribute contained in the LDAP user info. Osnard (talk) 08:54, 13 December 2023 (UTC)