Hello ,
I have the same problem
my configuration : PHP 5.2.11, Apache 2.2.11 , MySQL 5.1.36, LDAP Authentication Plugin (Version 1.2c)
I work on windows xp, with wampserver
I work whith OpenLDAP which is runnig on ldap://localhost:389
and Mediawiki run on wampserver : http://localhost/mediawiki/index.php/Accueil
LocalSettings.php
require_once( "$IP/extensions/LDAP/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "LOCALLDAP" );
$wgLDAPServerNames = array( "LOCALLDAP"=>"my-domain.com" );
$wgLDAPUseLocal = true;
$wgLDAPEncryptionType = array( "LOCALLDAP"=>"clear" );
$wgLDAPPort = array("LOCALLDAP"=>389);
$wgLDAPSearchStrings = array( "LOCALLDAP" => "LOCALLDAP\\USER-NAME" );
$wgLDAPGroupNameAttribute = array("OURDOMAIN"=>"cn");
$wgLDAPUserBaseDNs = array("LOCALLDAP"=>"ou=Utilisateurs,ou=Personnes,dc=my-domain,dc=com");
$wgLDAPDisableAutoCreate = array("LOCALLDAP"=>false);
$wgMinimalPasswordLength = 1;
$wgLDAPDebug = 3;
$wgDebugLogFile = "C:\log.txt";
$wgLDAPBaseDNs = array("LOCALLDAP" => "dc=my-domain,dc=com" );
$wgDebugLogGroups["ldap"] = "/tmp/debug.log" ;
$wgLDAPGroupBaseDNs = array( "LOCALLDAP"=>"ou=Groupes,dc=my-domain,dc=com" );
Debug.log
2010-06-28 08:49:37 bd_mediawiki: Entering validDomain
2010-06-28 08:49:37 bd_mediawiki: User is not using a valid domain.
2010-06-28 08:49:37 bd_mediawiki: Setting domain as: invaliddomain
2010-06-28 08:49:37 bd_mediawiki: Entering allowPasswordChange
2010-06-28 08:49:37 bd_mediawiki: Entering modifyUITemplate
2010-06-28 08:49:37 bd_mediawiki: Allowing the local domain, adding it to the list.
2010-06-28 08:49:53 bd_mediawiki: Entering validDomain
2010-06-28 08:49:53 bd_mediawiki: User is using a valid domain.
2010-06-28 08:49:53 bd_mediawiki: Setting domain as: LOCALLDAP
2010-06-28 08:49:53 bd_mediawiki: Entering getCanonicalName
2010-06-28 08:49:53 bd_mediawiki: Username isn't empty.
2010-06-28 08:49:53 bd_mediawiki: Munged username: Admin1
2010-06-28 08:49:53 bd_mediawiki: Entering userExists
2010-06-28 08:49:53 bd_mediawiki:
2010-06-28 08:49:53 bd_mediawiki: Entering authenticate
2010-06-28 08:49:53 bd_mediawiki:
2010-06-28 08:49:53 bd_mediawiki: Entering Connect
2010-06-28 08:49:53 bd_mediawiki: It looks like you are missing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message.
2010-06-28 08:49:53 bd_mediawiki: Failed to connect
2010-06-28 08:49:53 bd_mediawiki: Entering allowPasswordChange
2010-06-28 08:49:53 bd_mediawiki: Entering modifyUITemplate
2010-06-28 08:49:53 bd_mediawiki: Allowing the local domain, adding it to the list.
2010-06-28 08:50:02 bd_mediawiki: Entering validDomain
2010-06-28 08:50:02 bd_mediawiki: User is using a valid domain.
2010-06-28 08:50:02 bd_mediawiki: Setting domain as: LOCALLDAP
2010-06-28 08:50:02 bd_mediawiki: Entering getCanonicalName
2010-06-28 08:50:02 bd_mediawiki: Username isn't empty.
2010-06-28 08:50:02 bd_mediawiki: Munged username: Eva
2010-06-28 08:50:02 bd_mediawiki: Entering authenticate
2010-06-28 08:50:02 bd_mediawiki:
2010-06-28 08:50:02 bd_mediawiki: Entering Connect
2010-06-28 08:50:02 bd_mediawiki: It looks like you are missing LDAP support; please ensure you have either compiled LDAP support in, or have enabled the module. If the authentication is working for you, the plugin isn't properly detecting the LDAP module, and you can safely ignore this message.
2010-06-28 08:50:02 bd_mediawiki: Failed to connect
2010-06-28 08:50:02 bd_mediawiki: Entering strict.
2010-06-28 08:50:02 bd_mediawiki: Returning false in strict().
2010-06-28 08:50:02 bd_mediawiki: Entering updateUser
2010-06-28 08:50:02 bd_mediawiki: User didn't successfully authenticate, exiting.
I've tested the connection with 2 login
Admin1 which is an AD user but not he has no account in the wiki
Eva which is an AD user but she has an account int the wiki as a sysop
I don't know what to do. Could you help me please
thanks
This post was posted by Eva~mediawikiwiki, but signed as Eva.