Hier maar eens proberen:
Okay, zit nu echt met iets wat ik gewoon heb opgegeven. Heb het ook op MediaWiki gevraagd maar het is nogal dood daar. Hoop dat iemand hier mij wat verder kan helpen (aanzetten debugging zou al helpen). Wil LDAP authenticatie aanzetten op MediaWiki, wanneer ik echter probeer aan te loggen krijg ik constant de melding verkeerde gebruikersnaam/wachtwoord.
Even een copy-paste:
Installed MediaWiki on a brand new CentOS7 VM (iso 1810).
MediaWiki version 1.32.0
MariaDB10.3.14
PHP version 7.3.5
De zogenoemde LDAP extensie van de MediaWiki afgehaald, folder getiteld LdapAuth aangemaakt onder /var/www/html/extensions/
Installed php-ldap
composer install --no-dev uitgevoerd (conform de documantatie)
Added the following settings to my LocalSettings.php (and tried countless variaties on this):
#added by me
require_once ('/var/log/www/html/extensions/LdapAuth/src/Auth/LdapAuthenticationRequest.php');
require_once ('includes/AuthPlugin.php');
wfLoadExtension( 'LdapAuth' );
$wgAuth = new AuthPlugin()
$wgLDAPDomainNames = array('mytest.lan');
$wgLDAPServerNames = array('mytest.lan' => 'ad01.mytest.lan');
$wgLDAPSearchAttributes = array('mytest.lan' => 'sAMAccountName');
$wgLDAPBaseDNs = array('mytest.lan' => 'dc=mytest,dc=lan');
$wgLDAPAuthEncryptionType = array('mytest.lan' => 'false');
$wgLDAPPort = array('mytest.lan' => '389');
$wgLdapAuthIsActiveDirectory = true;
$wgMinimalPasswordLength = 1;
#Debugging options
$wgShowExceptionDetails = true;
$wgLDAPDebug = 3
$wgDebugLogGroups[ 'ldap' ] = '/tmp/debug.log';
This and all kinds of variaties but to no success.
- Zie alleen DNS-queries binnenkomen op de DC, er zitten geen ACL's oid tussen de AD-MediaWiki. Tcpdump laat ook alleen uitgaande DNS-requests zien.
- The logging for whatever reason does not work. I turned off SELinux to make sure it isn't blocking anything but no luck. Gave the /tmp/debug.log all access for the time being but still nothing is being written to it.
Wordt dus niks gelogd om een of andere reden, terwijl volgens de documentatie dit wel de manier is.
- Documentation says to make sure /etc/php.d/ldap.ini has the line containing: extension=ldap.so
This is not entirely the case, this OS had: /etc/php.d/20-ldap.ini containing the line extension=ldap (so without the.so, though I changed that as well but it did not help)
- put the following line in /etc/openldap/ldap.conf: TLS_REQCERT never
Ran the maintenance/update.php after pretty much every change as well restarting the httpd (and the server itself at times).
But whenever I try to logon with a domainuser It just tells me "username or password is not correct". Truly at a loss.
Dusja, echt uren mee bezig maar geen succes. RTFM helpt helaas niet
Okay, zit nu echt met iets wat ik gewoon heb opgegeven. Heb het ook op MediaWiki gevraagd maar het is nogal dood daar. Hoop dat iemand hier mij wat verder kan helpen (aanzetten debugging zou al helpen). Wil LDAP authenticatie aanzetten op MediaWiki, wanneer ik echter probeer aan te loggen krijg ik constant de melding verkeerde gebruikersnaam/wachtwoord.
Even een copy-paste:
Installed MediaWiki on a brand new CentOS7 VM (iso 1810).
MediaWiki version 1.32.0
MariaDB10.3.14
PHP version 7.3.5
De zogenoemde LDAP extensie van de MediaWiki afgehaald, folder getiteld LdapAuth aangemaakt onder /var/www/html/extensions/
Installed php-ldap
composer install --no-dev uitgevoerd (conform de documantatie)
Added the following settings to my LocalSettings.php (and tried countless variaties on this):
#added by me
require_once ('/var/log/www/html/extensions/LdapAuth/src/Auth/LdapAuthenticationRequest.php');
require_once ('includes/AuthPlugin.php');
wfLoadExtension( 'LdapAuth' );
$wgAuth = new AuthPlugin()
$wgLDAPDomainNames = array('mytest.lan');
$wgLDAPServerNames = array('mytest.lan' => 'ad01.mytest.lan');
$wgLDAPSearchAttributes = array('mytest.lan' => 'sAMAccountName');
$wgLDAPBaseDNs = array('mytest.lan' => 'dc=mytest,dc=lan');
$wgLDAPAuthEncryptionType = array('mytest.lan' => 'false');
$wgLDAPPort = array('mytest.lan' => '389');
$wgLdapAuthIsActiveDirectory = true;
$wgMinimalPasswordLength = 1;
#Debugging options
$wgShowExceptionDetails = true;
$wgLDAPDebug = 3
$wgDebugLogGroups[ 'ldap' ] = '/tmp/debug.log';
This and all kinds of variaties but to no success.
- Zie alleen DNS-queries binnenkomen op de DC, er zitten geen ACL's oid tussen de AD-MediaWiki. Tcpdump laat ook alleen uitgaande DNS-requests zien.
- The logging for whatever reason does not work. I turned off SELinux to make sure it isn't blocking anything but no luck. Gave the /tmp/debug.log all access for the time being but still nothing is being written to it.
Wordt dus niks gelogd om een of andere reden, terwijl volgens de documentatie dit wel de manier is.
- Documentation says to make sure /etc/php.d/ldap.ini has the line containing: extension=ldap.so
This is not entirely the case, this OS had: /etc/php.d/20-ldap.ini containing the line extension=ldap (so without the.so, though I changed that as well but it did not help)
- put the following line in /etc/openldap/ldap.conf: TLS_REQCERT never
Ran the maintenance/update.php after pretty much every change as well restarting the httpd (and the server itself at times).
But whenever I try to logon with a domainuser It just tells me "username or password is not correct". Truly at a loss.
Dusja, echt uren mee bezig maar geen succes. RTFM helpt helaas niet