Hello,
I'm having trouble trying to connect my Mediawiki Installation to an LDAP Server. I'm using the extensions Pluggable Auth, LDAPProvider and LDAPAuthentication2.
My Installation:
Ubuntu 18.04
Mediawiki 1.31.6
PHP 7.2.24-0ubuntu0.18.04.7 (apache2handler)
MySQL 5.7.32-0ubuntu0.18.04.1
Extensions:
PluggableAuth 5.4 (300ac44) 05:28, 14. Apr. 2018
LDAPProvider 1.0.5 (098cd58) 14:33, 1. Sep. 2020
LDAP Authentication for Mediawiki 1.31
Content of my ldap.json file:
{
"LDAP": {
"connection": {
"server": "server-ldap.local",
"port": "389"
"user": "CN=Mediawiki-auth,OU=people,DC=server-ldap,DC=loc$
"pass": "password",
"enctype": "tls",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "dc=server-ldap,dc=local",
"groupbasedn": "dc=server-ldap,dc=local",
"userbasedn": "dc=server-ldap,dc=local",
"searchattribute": "uid",
"searchstring": "uid=USER-NAME,dc=server-ldap,dc=local",
"usernameattribute": "uid",
"realnameattribute": "cn",
"emailattribute": "mail"
}
}
}
Whenever I'm enabling the LDAPAuthentication2 extension in my LocalSettings.php through wfLoadExtension( 'LDAPAuthentication2' ); I get the error "[7b001ef83ac85982732e6fad] 2021-01-03 15:12:39: Fatal exception of type MWException" when trying to access my wiki.
Can anyone offer advice?
Thank you