Extension:LDAPAuthentication2/fi

This extension is part of the LDAP Stack and requires the LDAPProvider extension to be installed first.
Category:LDAP Stack Member/fi
This extension requires the PluggableAuth extension to be installed first.
Category:PluggableAuth plugins/fi Category:GPL licensed extensions/fi
MediaWikin laajennukset-ohje
LDAPAuthentication2
Julkaisustatus: vakaaCategory:Stable extensions/fi
Toteutus Käyttäjän identiteetti Category:User identity extensions/fi
Tekijä(t)
Viimeisin versio 1.0.1
Yhteensopivuuskäytäntö For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.31+Category:Extensions with manual MediaWiki version
Composer mediawiki/ldap-authentication-2Category:Extensions supporting Composer/fi
Lisenssi GNU General Public License 2.0 tai myöhempi
Lataa Category:Extensions in Wikimedia version control/fi
  • $LDAPAuthentication2AllowLocalLogin
  • $LDAPAuthentication2UsernameNormalizer
Quarterly downloads 297 (Ranked 7th)
Voit kääntää LDAPAuthentication2-laajennuksen mikäli se on saatavilla translatewiki.netissä
Ongelmat Avoimet tehtävät · Raportoi ongelmasta
Category:All extensions/fi

Asennus

  • Lataa ja siirrä purettu kansio nimeltä LDAPAuthentication2 extensions/-kansioosi.
    Kehittäjien ja koodipaikkauksia tekevien tahojen tulisi asentaa laajennos git-versionhallintaohjelmaa käyttäen:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPAuthentication2
  • Lisää seuraava koodi LocalSettings.php -tiedostosi loppuosaan:
    wfLoadExtension( 'LDAPAuthentication2' );
    
  • Configure as required.
  • Yes Tehty – Mene wikisi sivulle Special:Version vahvistaaksesi, että laajennoksen asennus onnistui.

Konfigurointi

Laajennuksen asetukset

$LDAPAuthentication2AllowLocalLogin
Whether or not to display a "local" pseudo-domain in the domain selector on "Special:Login", thus allowing to authenticate against the local user database. (defaults to false )
$LDAPAuthentication2UsernameNormalizer
Use this function for normalizing username for LDAP, for example 'strtolower'. Needed after migration from earlier Version. (defaults to "" )

Verkkotunnuksen asetukset

authentication.usernameattribute
The LDAP user object attribute name that should be used as a local wiki user username (defaults to "samaccountname")
authentication.realnameattribute
The LDAP user object attribute name that should be used as a local wiki user realname (defaults to "cn")
authentication.emailattribute
The LDAP user object attribute name that should be used as e-mail address for the local wiki user (defaults to "mail")

Versioning

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.35 (LTS) LDAPxxx_master Tested maaliskuu 2020

Further Reading

Migration from PluggableAuth 5

In REL1_39 branch LDAPAuthentication2 was adapted to PluggableAuth 6.

So in case of migration from REL1_35-REL1_38 (PluggableAuth 5) to REL1_39 (PluggableAuth 6) some configuration needs to be changed. Here is the example of the old configuration:

// In any case we need to specify LDAP domain configs
$LDAPProviderDomainConfigs = "$IP/../ldapprovider.json";

// Local login is enabled
$wgPluggableAuth_EnableLocalLogin = true;
$LDAPAuthentication2AllowLocalLogin = true;
...
$wgPluggableAuth_Class = "MediaWiki\\Extension\\LDAPAuthentication2\\PluggableAuth";
$wgPluggableAuth_ButtonLabel = "Log In (PluggableAuth)";

As a result, "Log In (PluggableAuth)" login button will appear on login page, with "domains" dropdown.

Domains list is obtained from the domain configs file. Let's assume that we have "ldap1" and "ldap2" domains configured there, still it is not reflected in PluggableAuth 5 configuration.

Here is how such configuration should be changed to be compatible with PluggableAuth 6:

// In any case we need to specify LDAP domain configs
$LDAPProviderDomainConfigs = "$IP/../ldapprovider.json";

// If local login is supported as well, then these globals are still needed
$wgPluggableAuth_EnableLocalLogin = true;
$LDAPAuthentication2AllowLocalLogin = true;
...
$wgPluggableAuth_Config['Log In (LDAP1)'] = [
    'plugin' => 'LDAPAuthentication2',
    'data' => [
        'domain' => 'ldap1'
    ]
];

$wgPluggableAuth_Config['Log In (LDAP2)'] = [
    'plugin' => 'LDAPAuthentication2',
    'data' => [
        'domain' => 'ldap2'
    ]
];

Here "ldap1" and "ldap2" are domains which are configured in domain configs file.

As a result, "Log In (LDAP1)" and "Log In (LDAP2)" login buttons will appear on login page.

So the main difference is that:

  • There is only one login button per LDAP domain.
  • Now $wgPluggableAuth_Config global should be used.
  • $wgPluggableAuth_Class global is not used anymore.


Category:LDAP extensions/fi Category:Login extensions/fi
Category:All extensions/fi Category:AuthChangeFormFields extensions/fi Category:Extensions in Wikimedia version control/fi Category:Extensions included in BlueSpice/fi Category:Extensions included in Canasta/fi Category:Extensions supporting Composer/fi Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/fi Category:LDAP Stack Member/fi Category:LDAP extensions/fi Category:Login extensions/fi Category:PluggableAuth plugins/fi Category:Stable extensions/fi Category:User identity extensions/fi