Thread:Extension talk:LDAP Authentication/Failed to bind as AD user

Hello , I have posted a message at the wrong place, so i create a new thread 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

LocalSettings.php
require_once( "extensions/ScriptManager/SM_Initialize.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("LOCALLDAP"=>"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-29 08:48:46 bd_mediawiki: Entering validDomain 2010-06-29 08:48:46 bd_mediawiki: User is using a valid domain. 2010-06-29 08:48:46 bd_mediawiki: Setting domain as: LOCALLDAP 2010-06-29 08:48:46 bd_mediawiki: Entering getCanonicalName 2010-06-29 08:48:46 bd_mediawiki: Username isn't empty. 2010-06-29 08:48:46 bd_mediawiki: Munged username: Admin1 2010-06-29 08:48:46 bd_mediawiki: Entering userExists 2010-06-29 08:48:46 bd_mediawiki: 2010-06-29 08:48:46 bd_mediawiki: Entering authenticate 2010-06-29 08:48:46 bd_mediawiki: 2010-06-29 08:48:46 bd_mediawiki: Entering Connect 2010-06-29 08:48:46 bd_mediawiki: Using TLS or not using encryption. 2010-06-29 08:48:46 bd_mediawiki: Using non-standard port: 389 2010-06-29 08:48:46 bd_mediawiki: Using servers:  ldap://my-domain.com:389 2010-06-29 08:48:46 bd_mediawiki: Connected successfully 2010-06-29 08:48:46 bd_mediawiki: Entering getSearchString 2010-06-29 08:48:46 bd_mediawiki: Doing a straight bind 2010-06-29 08:48:46 bd_mediawiki: userdn is: LOCALLDAP\Admin1 2010-06-29 08:48:46 bd_mediawiki: 2010-06-29 08:48:46 bd_mediawiki: Binding as the user 2010-06-29 08:48:47 bd_mediawiki: Failed to bind as LOCALLDAP\Admin1 2010-06-29 08:48:47 bd_mediawiki: Entering allowPasswordChange 2010-06-29 08:48:47 bd_mediawiki: Entering modifyUITemplate 2010-06-29 08:48:47 bd_mediawiki: Allowing the local domain, adding it to the list.

This debug.log file was generated with an AD user who has no wiki account The authentication to the wiki fails

When i use an AD user who has a wiki account as a sysop, i obtain this debug.log file

debug.log
2010-06-29 08:53:24 bd_mediawiki: Entering validDomain 2010-06-29 08:53:24 bd_mediawiki: User is using a valid domain. 2010-06-29 08:53:24 bd_mediawiki: Setting domain as: LOCALLDAP 2010-06-29 08:53:24 bd_mediawiki: Entering getCanonicalName 2010-06-29 08:53:24 bd_mediawiki: Username isn't empty. 2010-06-29 08:53:24 bd_mediawiki: Munged username: Eva 2010-06-29 08:53:24 bd_mediawiki: Entering authenticate 2010-06-29 08:53:24 bd_mediawiki: 2010-06-29 08:53:24 bd_mediawiki: Entering Connect 2010-06-29 08:53:24 bd_mediawiki: Using TLS or not using encryption. 2010-06-29 08:53:24 bd_mediawiki: Using non-standard port: 389 2010-06-29 08:53:24 bd_mediawiki: Using servers:  ldap://my-domain.com:389 2010-06-29 08:53:24 bd_mediawiki: Connected successfully 2010-06-29 08:53:24 bd_mediawiki: Entering getSearchString 2010-06-29 08:53:24 bd_mediawiki: Doing a straight bind 2010-06-29 08:53:24 bd_mediawiki: userdn is: LOCALLDAP\Eva 2010-06-29 08:53:24 bd_mediawiki: 2010-06-29 08:53:24 bd_mediawiki: Binding as the user 2010-06-29 08:53:26 bd_mediawiki: Failed to bind as LOCALLDAP\Eva 2010-06-29 08:53:26 bd_mediawiki: Entering strict. 2010-06-29 08:53:26 bd_mediawiki: Returning false in strict. 2010-06-29 08:53:26 bd_mediawiki: Entering updateUser 2010-06-29 08:53:26 bd_mediawiki: User didn't successfully authenticate, exiting.

The autentication to the wiki doesn't fail

thanks