I'm struggling to find any useful logs and have been stuck on this for sometime. Any and all help would be much appreciated. I'm pretty new to linux, php, mediawiki administration. Without a lot of information to go on I think the issue is the cert setup, but not sure how to confirm that.
Installed:
MediaWiki | 1.30.0 |
LDAP Authentication Plugin | 2.1.0 (b19888c) 03:11, 14 April 2018 |
Configuration:
#LDAP Auth
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array('DOMAIN');
$wgLDAPServerNames = array('DOMAIN' => 'DC1.domain.com');
$wgLDAPEncryptionType = array('DOMAIN' => 'tls'); ##I've tried clear and ssl
$wgLDAPProxyAgent = array('DOMAIN' => 'CN=Wiki LDAP,OU=Service Accounts,DC=domain,DC=com');
$wgLDAPProxyAgentPassword = array('DOMAIN' => 'WikiLDAPPASSWORD');
$wgLDAPSearchAttributes = array('DOMAIN' => 'sAMAccountName');
$wgLDAPBaseDNs = array('DOMAIN' => 'cn=People,dc=domain,dc=com');
$wgMinimalPasswordLength = 1;
$wgLDAPDebug = 3;
$wgDebugLogGroups['ldap'] = '/tmp/ldap-debug.log';
Logs:
root@SERVER1:/var/lib/mediawiki# cat /tmp/ldap-debug.log
2019-12-02 16:49:45 SERVER1 site_wiki: 2.1.0 Entering strict.
2019-12-02 16:49:45 SERVER1 site_wiki: 2.1.0 Entering getDomain
2019-12-02 16:49:45 SERVER1 site_wiki: 2.1.0 Returning true in strict().
2019-12-02 18:05:02 SERVER1 site_wiki: 2.1.0 Entering strict.
2019-12-02 18:05:02 SERVER1 site_wiki: 2.1.0 Entering getDomain
2019-12-02 18:05:02 SERVER1 site_wiki: 2.1.0 Returning true in strict().
2019-12-02 18:12:35 SERVER1 site_wiki: 2.1.0 Entering strict.
2019-12-02 18:12:35 SERVER1 site_wiki: 2.1.0 Entering getDomain
2019-12-02 18:12:35 SERVER1 site_wiki: 2.1.0 Returning true in strict().
2019-12-02 18:33:38 SERVER1 site_wiki: 2.1.0 Entering strict.
2019-12-02 18:33:38 SERVER1 site_wiki: 2.1.0 Entering getDomain
2019-12-02 18:33:38 SERVER1 site_wiki: 2.1.0 Returning true in strict().
I did at one point see this in the apache2 error.log but it stopped coming up.
[php7:warn] [pid 1465] [client 172.21.193.14:54312] PHP Warning: ldap_start_tls(): Unable to start TLS: Connect error in /var/lib/mediawiki/extensions/LdapAuthentication/LdapAuthenticationPlugin.php on line 614, referer: https://SERVER1.domain.com/mediawiki/index.php?title=Special:UserLogin&returnto=Special:ListUsers