Topic on Project:Support desk/Flow

Linux Account User as Wiki Log in

7
Syplante (talkcontribs)

Hello,

We're new with Mediawiki. We're trying to create a private wiki site and we want to avoid having to create additional account.

Which extension is using the local linux account user ( /etc/passwd ) to log in as a wiki user ?


Here's our Mediawiki version :

Product Version
MediaWiki 1.34.2
PHP 7.2.24-0ubuntu0.18.04.6 (apache2handler)
MariaDB 10.1.44-MariaDB-0ubuntu0.18.04.1
ICU 60.2

Thank you !

Fokebox (talkcontribs)

$wgGroupPermissions['*']['creareaccount'] = false;

Florianschmidtwelzow (talkcontribs)

I'm not aware that such a n extension exists. I would also rather not use it and I think that there's even no (easy/standard) way of getting the information required to login simply from the passwd file, even given that your system is not using a sahdow file for passwords (which it probably does). I'm not even sure, if you can read all the required files from php without root access, and if not, running php as a root user is probably a big security issue as well.

So, instead of looking for such a way, it's probably more beneficial to look in a better way to manage your users. Probable solutions would be to have an LDAP service, which MediaWiki can integrate with, using extensions (LDAPAuthentication2). Or you could find another user management system of your choice and integrate MediaWiki using OAuth or SAML.

Bawolff (talkcontribs)

you probably want to setup openLDAP using the passwd backend, and then use a ldap extension for MW.

Syplante (talkcontribs)

Where can I fin iformation and example of configuration of LDAPAuthentification2 ?

Malyacko (talkcontribs)
199.198.134.134 (talkcontribs)

LDAPAuthentication2 supports only php7.x ... is there a newer one that would work with the new mediawiki?

Reply to "Linux Account User as Wiki Log in"