Thread:Extension talk:LDAP Authentication/ Urgent ldap authentication not working

Hi,

I'm using Mediawiki 1.19 and I'm trying to install LDAP but it seems not to be working(when user types his credentials it just goes in the welcome page but it didn;t display the user's name at the top right portion of the screen, in short it wasn't successful.) I've followed http://ryandlane.com/blog/2009/03/23/using-the-ldap-authentication-plugin-for-mediawiki-the-basics-part-1/ but It's still not working. The only working userID is the sysops userID which I created before installing LDAP.

Please help, this is what I've typed in localsettings.php


 * 1) require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
 * 2) $wgAuth = new LdapAuthenticationPlugin;
 * 3) $wgLDAPDomainNames = array( "testAD" );
 * 4) $wgLDAPServerNames = array( "testAD" => "**.*.***.** **.*.***.* **.*.**.* **.*.***.***" );
 * 5) $wgLDAPSearchStrings = array( "testAd" => "testAD\\USER-NAME" );
 * 6) $wgLDAPEncryptionType = array( "testAD" => "clear" );
 * 7) $wgLDAPUseLocal = false;
 * 8) $wgMinimalPasswordLength = 1;

Appreciate your help.

In addition, the only users that are successful logging in are the sysops I created before ldap (the sysops password in mediawiki and ldap server are different but is accepting the ldap password, to me i think is successful authenticating on ldap but needs to have an account in mediawiki).

Mediawiki Account (sysops):

Username: testuser

Password: 12345

Ldap:

Username:testuser

Password: 67890

End Result: Ldap password got in and not the mediawiki account Remarks: the sysops that i created are the only users that can login, it seems that you have to create users in mediawiki that are in ldap in order to login. But this is not we want to occur, we want to use the ldap as the login layer.

I've checked the debug.log and here is the only difference of the sysops account from non-existing local accounts (accounts in LDAP):


 * 2012-07-10 07:32:31 wiki: 2.0a User has a token, setting domain in user options.
 * 2012-07-10 07:32:31 wiki: 2.0a Saving user settings.
 * 2012-07-10 07:32:31 wiki: 2.0a Entering getCanonicalName
 * 2012-07-10 07:32:31 wiki: 2.0a Username is: testuser
 * 2012-07-10 07:32:31 wiki: 2.0a Entering getDomain
 * 2012-07-10 07:32:31 wiki: 2.0a Pulling domain from session.
 * 2012-07-10 07:32:31 wiki: 2.0a Munged username: testuser
 * 2012-07-10 07:32:31 wiki: 2.0a Entering getCanonicalName
 * 2012-07-10 07:32:31 wiki: 2.0a Username is: testuser
 * 2012-07-10 07:32:31 wiki: 2.0a Entering getDomain
 * 2012-07-10 07:32:31 wiki: 2.0a Pulling domain from session.
 * 2012-07-10 07:32:31 wiki: 2.0a Munged username:testuser