Is it possible to get additional fields from AD, such as position, department and save them to the user's profile?
Extension talk:LDAPUserInfo
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.
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?
The extension version is 1.31.
Can you please share your configuration?
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.
Great, thanks for the feedback!
Same problem here, these settings sound confusingly similar, some explanation of their relation and how to configue them would be very helpful!
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?
Didn't mean to post this anonymously... forgot to login first...
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 the ShowUserInfo.php
lists "CN" but you have configured "cn" it might probably not work.
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?
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.)
Thanks for your advice, I will try to use LDAPAuthentication2.
This is a known bug and has been fixed recently. Please download the latest version of LDAPUserInfo.
There are no older topics