Thread:Extension talk:LDAP Authentication/Combination LdapAutoAuthentication and Group Sync won't work with Activve Directory

Hi

my goal is to bind our active directory with media wiki and using the group synchronsiation. Works perfect.

But when i try to activate LdapAutoAuthentication.php, the group sync didn't work anymore.

Here is my configuration:


 * 1) LDAP

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); require_once( "$IP/extensions/LdapAuthentication/LdapAutoAuthentication.php" ); // options go here
 * 1) Set Auto

//$wgLDAPAutoAuthDomain = 'ad'; //$wgLDAPAutoAuthUsername = str_replace( 'ad\\', '', $_SERVER['AUTH_USER'] ); list($dom,$userid) = split('[\]',$_SERVER['REMOTE_USER']); $wgLDAPAutoAuthUsername = $userid;
 * 1) Remove the domain portion of the displayed username. Example: "DOMAIN\username" to "username"

//$wgAuth = new LdapAuthenticationPlugin; //$wgAuth->printDebug( $wgLDAPAutoAuthUsername, NONSENSITIVE ); $wgLDAPDomainNames = array( "ad" ); $wgLDAPServerNames = array( "ad" => "ldap.ad.becom.at" );

$wgLDAPSearchStrings = array( "ad" => "ad\\USER-NAME" ); $wgLDAPEncryptionType = array( "ad" => "clear" );

$wgLDAPUseLocal = true; $wgMinimalPasswordLength = 1; $wgLDAPBaseDNs = array( "ad" => "dc=ad,dc=becom,dc=at" ); $wgLDAPSearchAttributes = array( "ad" => "samaccountname" ); $wgLDAPPreferences = array( "ad" => "true" );

$wgLDAPProxyAgent = array(  'ad' => 'CN=wasadmin,OU=SystemUser,DC=ad,DC=becom,DC=at' );

$wgLDAPProxyAgentPassword = array( 'ad' => 'Geh_Heim' );

$wgLDAPRetrievePrefs = array( 'ad' => true,  );

$wgLDAPPreferences = array( 'ad' => array( 'email' => 'mail','realname' => 'cn','nickname' => 'samaccountname') );

$wgLDAPDebug = 3; //for debugging LDAP $wgDebugLogGroups["ldap"] = "c:\inetpub\wwwroot\mediawiki\ldapdebug.log" ; //for debugging LDAP $wgShowExceptionDetails = true; //for debugging MediaWiki

/*$wgLDAPGroupUseRetrievedUsername = array( 'ad' => true );*/

$wgLDAPGroupUseFullDN = array( 'ad' => true );

$wgLDAPLowerCaseUsername = array( 'ad' => false );

$wgLDAPGroupObjectclass = array( 'ad' => 'group' );

$wgLDAPGroupAttribute = array( 'ad' => 'member' );

$wgLDAPGroupNameAttribute = array( 'ad' => 'cn' );

// Pull LDAP groups a user is in, and update local wiki security group. // Default: false $wgLDAPUseLDAPGroups = array( 'ad' => true  );

$wgLDAPGroupsPrevail = array( 'ad' => true );

//$wgLDAPAutoAuthUsername = preg_replace( '/@.*/', '', $_SERVER["REMOTE_USER"] ); //$wgLDAPAutoAuthDomain = "ad" ;

AutoAuthSetup;


 * 1) LDAP End

Can someone help me?

Kind Regards Klaus