My MediaWiki is 1.18 version and the LdapAutentication version is 1.2d. Everytime a user login in the wiki it get that error. But can login anyway. If the browser isn't closed, the error won't show again, even if he logout and login again. My Settings are just like this
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "DPT001" ); $wgLDAPServerNames = array( "DPT001"=>"AD_SERVER.COMPANY.LOCAL" );
$wgLDAPUseLocal = false; $wgLDAPEncryptionType = array( "DPT001"=>"clear" )
$wgLDAPSearchStrings = array( "DPT001"=>"DPT001\\USER-NAME" );
$wgLDAPSearchAttributes = array( "DPT001"=>"sAMAccountName" ); $wgLDAPBaseDNs = array( "DPT001"=>"dc=COMPANY,dc=LOCAL" ); $wgLDAPGroupBaseDNs = array( "DPT001"=>"OU=Users,DC=COMPANY,DC=LOCAL" ); $wgLDAPUserBaseDNs = array( "DPT001"=>"OU=Users,DC=COMPANY,DC=LOCAL" );
$wgMinimalPasswordLength = 1;
$wgLDAPDebug = 1; $wgDebugLogGroups["ldap"] = "$IP/log/addebug.log" ;
$wgLDAPGroupUseFullDN = array( "DPT001"=>true ); $wgLDAPGroupObjectclass = array( "DPT001"=>"group" ); $wgLDAPGroupAttribute = array( "DPT001"=>"member" ); $wgLDAPGroupNameAttribute = array( "DPT001"=>"cn" ); $wgLDAPGroupsUseMemberOf = array( "DPT001"=>true );
$wgLDAPUseLDAPGroups = array( "DPT001"=>true ); $wgLDAPLocallyManagedGroups = array( "DPT001"=>array( "GROUPNAME"));
$wgLDAPRequiredGroups = array( "DPT001"=>array( "CN=GROUPNAME,OU=GROUPS_FUNC,OU=COMPANY,OU=Users,DC=COMPANY,DC=LOCAL") );
$wgHooks['SetUsernameAttributeFromLDAP'][] = 'SetUsernameAttribute';
function SetUsernameAttribute(&$LDAPUsername, $info) {
$LDAPUsername = $info[0]['samaccountname'][0];
return true;
Can you help me? thank you in advance