Extension talk:LDAPUserInfo

About this board

Additional fields from LDAP

2
Derek Jones Smr (talkcontribs)

Is it possible to get additional fields from AD, such as position, department and save them to the user's profile?

Osnard (talkcontribs)

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.

Reply to "Additional fields from LDAP"

Realnameattribute returning CN

6
150.148.14.146 (talkcontribs)

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 (talkcontribs)

The extension version is 1.31.

Osnard (talkcontribs)

Can you please share your configuration?

150.148.14.146 (talkcontribs)
Osnard (talkcontribs)

Great, thanks for the feedback!

188.206.108.132 (talkcontribs)

Same problem here, these settings sound confusingly similar, some explanation of their relation and how to configue them would be very helpful!

Reply to "Realnameattribute returning CN"

Display name vs User Account Name - LDAP

3
69.204.38.38 (talkcontribs)

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?

Rosenblitt (talkcontribs)

Didn't mean to post this anonymously... forgot to login first...

Osnard (talkcontribs)

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.

Reply to "Display name vs User Account Name - LDAP"
42.60.86.250 (talkcontribs)

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?

SocJusWiz (talkcontribs)

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.)

203.116.81.218 (talkcontribs)

Thanks for your advice, I will try to use LDAPAuthentication2.

Osnard (talkcontribs)

This is a known bug and has been fixed recently. Please download the latest version of LDAPUserInfo.

Reply to "Dependency Error"
There are no older topics