Extension:LDAPUserInfo

From mediawiki.org
Jump to navigation Jump to search
MediaWiki Stakeholders' Group Logo.svg This extension is maintained by a member of the MediaWiki Stakeholders' Group .
MWStake LDAPStack Icon.svg This extension is part of the LDAP Stack and requires the LDAPProvider extension to be installed first.

This extension updates user information in the local wiki with the data retrieved from an LDAP resource.

MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
LDAPUserInfo
Release status: stable
MWStake LDAPStack Icon.svg
Description Used to query user information using LDAP
Author(s) Cindy Cicalese, Mark A. Hershberger, Robert Vogel
Latest version 1.0.0
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.31+
License GNU General Public License 2.0 or later
Download
  • $LDAPUserInfoModifierRegistry
Translate the LDAPUserInfo extension if it is available at translatewiki.net

Check usage and version matrix.

Issues Open tasks · Report a bug

Domain config settings[edit]

Name Default Description
userinfo.attributes-map
{
	"email": "mail",
	"realname": "cn",
	"properties.gender": "gender"
}

Note that Extension:LDAPProvider itself has the very similar settings realnameattribute and emailattribute, possibly leading to confusion and misconfiguration (see e.g. this topic). The relation between these similar attributes is …… (TODO could somebody please explain?)

Example[edit]

$LDAPProviderDomainConfigProvider = function() {
	$config = [
		'company.local' => [
			'connection' => [
				"server" => "ldap.company.local",
				
				"searchattribute" => "uid",
				"usernameattribute" => "uid",
				"realnameattribute" => "fullname",
				"emailattribute" => "mail",
			],
			
			'userinfo' => [
				'attributes-map' => [
					'email' => 'mail',
					'realname' => 'fullname'
				]
			]
		]
	];
    

Versioning[edit]

LDAP Stack Extensions are targeted/qualified for MediaWiki LTS releases only.
However, this table helps to determine which extension-releases to use across all recent versions.

MediaWiki Release Recommended Extension Version Test Status Latest Test Date
1.31 (LTS) LDAPxxx_REL1_31 Tested, Recommended March 2020
1.32 LDAPxxx_REL1_31 Not Tested -
1.33 LDAPxxx_REL1_31 Tested March 2020
1.34 LDAPxxx_REL1_31 Tested March 2020
1.35 (LTS Planned) LDAPxxx_master Tested March 2020