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

Hi , I've changed some things in my LocalSettings.php file it seems to work require_once( "extensions/ScriptManager/SM_Initialize.php" ); require_once( "$IP/extensions/LDAP/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin; $wgLDAPDomainNames = array( "LOCALLDAP" );

$wgLDAPServerNames = array( "LOCALLDAP"=>"localhost" ); $wgLDAPUseLocal = true; $wgLDAPEncryptionType = array( "LOCALLDAP"=>"clear" ); $wgLDAPPort = array("LOCALLDAP"=>389); $wgLDAPSearchStrings = array( "LOCALLDAP"=>"cn=USER-NAME,ou=Utilisateurs,ou=Personnes,dc=my-domain,dc=com"); $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" );

and i obtain this log file 2010-06-29 09:18:36 bd_mediawiki: Entering validDomain 2010-06-29 09:18:36 bd_mediawiki: User is not using a valid domain. 2010-06-29 09:18:36 bd_mediawiki: Setting domain as: invaliddomain 2010-06-29 09:18:36 bd_mediawiki: Entering allowPasswordChange 2010-06-29 09:18:36 bd_mediawiki: Entering modifyUITemplate 2010-06-29 09:18:36 bd_mediawiki: Allowing the local domain, adding it to the list. 2010-06-29 09:18:43 bd_mediawiki: Entering validDomain 2010-06-29 09:18:43 bd_mediawiki: User is using a valid domain. 2010-06-29 09:18:43 bd_mediawiki: Setting domain as: LOCALLDAP 2010-06-29 09:18:43 bd_mediawiki: Entering getCanonicalName 2010-06-29 09:18:43 bd_mediawiki: Username isn't empty. 2010-06-29 09:18:43 bd_mediawiki: Munged username: Admin1 2010-06-29 09:18:43 bd_mediawiki: Entering userExists 2010-06-29 09:18:43 bd_mediawiki: 2010-06-29 09:18:43 bd_mediawiki: Entering authenticate 2010-06-29 09:18:43 bd_mediawiki: 2010-06-29 09:18:43 bd_mediawiki: Entering Connect 2010-06-29 09:18:43 bd_mediawiki: Using TLS or not using encryption. 2010-06-29 09:18:43 bd_mediawiki: Using non-standard port: 389 2010-06-29 09:18:43 bd_mediawiki: Using servers:  ldap://localhost:389 2010-06-29 09:18:43 bd_mediawiki: Connected successfully 2010-06-29 09:18:43 bd_mediawiki: Entering getSearchString 2010-06-29 09:18:43 bd_mediawiki: Doing a straight bind 2010-06-29 09:18:43 bd_mediawiki: userdn is: cn=Admin1,ou=Utilisateurs,ou=Personnes,dc=my-domain,dc=com 2010-06-29 09:18:43 bd_mediawiki: 2010-06-29 09:18:43 bd_mediawiki: Binding as the user 2010-06-29 09:18:43 bd_mediawiki: Bound successfully 2010-06-29 09:18:43 bd_mediawiki: Entering getGroups 2010-06-29 09:18:43 bd_mediawiki: Entering checkGroups 2010-06-29 09:18:43 bd_mediawiki: Entering getPreferences 2010-06-29 09:18:43 bd_mediawiki: Entering synchUsername 2010-06-29 09:18:43 bd_mediawiki: Authentication passed 2010-06-29 09:18:43 bd_mediawiki: Entering allowPasswordChange 2010-06-29 09:18:43 bd_mediawiki: Entering initUser 2010-06-29 09:18:43 bd_mediawiki: Entering updateUser

I would like to know if this debug.log file means that the authentication was a success ? because i've got an internal error :

Detected bug in an extension! Hook smwfSetUserDefinedCookies failed to return a value; should return true to continue hook processing or false to abort.

Backtrace:


 * 0 C:\wamp\www\mediawiki\includes\User.php(2435): wfRunHooks('UserSaveSetting...', Array)
 * 1 C:\wamp\www\mediawiki\extensions\LDAP\LdapAuthentication.php(905): User->saveSettings
 * 2 C:\wamp\www\mediawiki\includes\specials\SpecialUserlogin.php(384): LdapAuthenticationPlugin->initUser(Object(User), true)
 * 3 C:\wamp\www\mediawiki\includes\specials\SpecialUserlogin.php(562): LoginForm->initUser(Object(User), true)
 * 4 C:\wamp\www\mediawiki\includes\specials\SpecialUserlogin.php(467): LoginForm->attemptAutoCreate(Object(User))
 * 5 C:\wamp\www\mediawiki\includes\specials\SpecialUserlogin.php(569): LoginForm->authenticateUserData
 * 6 C:\wamp\www\mediawiki\includes\specials\SpecialUserlogin.php(112): LoginForm->processLogin
 * 7 C:\wamp\www\mediawiki\includes\specials\SpecialUserlogin.php(17): LoginForm->execute
 * 1) 8 [internal function]: wfSpecialUserlogin(NULL, Object(SpecialPage))
 * 9 C:\wamp\www\mediawiki\includes\SpecialPage.php(771): call_user_func('wfSpecialUserlo...', NULL, Object(SpecialPage))
 * 1) 10 C:\wamp\www\mediawiki\includes\SpecialPage.php(559): SpecialPage->execute(NULL)
 * 2) 11 C:\wamp\www\mediawiki\includes\Wiki.php(229): SpecialPage::executePath(Object(Title))
 * 3) 12 C:\wamp\www\mediawiki\includes\Wiki.php(59): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
 * 4) 13 C:\wamp\www\mediawiki\index.php(116): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
 * 5) 14 {main}

Récupérée de « http://localhost/mediawiki/index.php/Sp%C3%A9cial:Connexion »

Warning: Parameter 1 to smwfSetUserDefinedCookies expected to be a reference, value given in C:\wamp\www\mediawiki\includes\Hooks.php on line 117