I am running Rocky Linux release 9.4 and have installed the following extensions:
cd /var/www/html/mediawiki/extensions
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPAuthentication2
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPProvider
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPAuthorization
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Auth_remoteuser
Added the following code at the bottom of the LocalSettings.php file:
wfLoadExtensions( [
'PluggableAuth',
'Auth_remoteuser',
'LDAPProvider',
'LDAPAuthentication2',
'LDAPAuthorization',
'LDAPUserInfo'
] );
created ../ldapprovider.json
{
"LDAP": {
"connection": {
"server": "auth1.b.com",
"port": "636",
"enctype": "ssl",
"user": "cn=read-only-admin,dc=b,dc=com",
"pass": "KvNCxxxx94QIiyZ",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "dc=b,dc=com",
"groupbasedn": "ou=group,dc=b,dc=com",
"userbasedn": "ou=people,dc=b,dc=com",
"searchattribute": "uid",
"searchstring": "uid=USER-NAME,ou=people,dc=b,dc=com",
"usernameattribute": "uid",
"realnameattribute": "cn",
"emailattribute": "mail"
}
}
}
I can login locally but LDAP doesn't work. I can login from the OS level e.g. su - ldapuser1 on this machine so I know there is an active connection.