Thread:Extension talk:LDAP Authentication/LDAP Groups not syncing automaticly

First of all, much respect for this plugin. Second, please excuse my English, but I'm at and I will learn better:) Third, the authentication works, great. My problem is that the ldap groups in MediaWiki are NOT "autoupdateing" to the table "user_groups".

My System: MediaWiki 1.17.0 "LDAPAUTHVERSION", "1.2h" PHP 5.3.3 mysql 5.0.77

The "username" is added after the "log in" into the "users" table. that works good.

If I do then an insert:

(INSERT INTO `table`.`user_groups` (`ug_user` ,`ug_group`) VALUES ('12', 'ldap-write-group');)

It works with the "rights/policy". I've searched, but not found what I could use to handle this problem.

Why is the "ldap-group-name" not automatically added to the "user_groups" table?

I have three groups in ldap. Two groups for "read" and one is allowed for "write".

$wgGroupPermissions['*'   ]['createaccount']   = false; $wgGroupPermissions['*'   ]['edit']            = false; $wgGroupPermissions['*'   ]['read']            = false;

$wgGroupPermissions['user' ]['edit']           = false; $wgGroupPermissions['user' ]['read']           = false;

$wgGroupPermissions['ldap-write-group'   ]['read']             = true; $wgGroupPermissions['ldap-write-group'   ]['edit']             = true;

$wgGroupPermissions['ldap-read-1'   ]['read']             = true; $wgGroupPermissions['ldap-read-1'   ]['edit']             = false;

$wgGroupPermissions['ldap-read-2-'   ]['read']             = true; $wgGroupPermissions['ldap-read-2-'   ]['edit']             = false;

my Localsettings(LDAP PART):


 * 1) LDAP CONFIG##################################################################################

require_once( "extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin; $wgUseLDAP = true;

$wgLDAPDomainNames = array( "ldap-write-group","ldap-read-1","ldap-read-2-"  ); $wgLDAPServerNames = array( "ldap-write-group" => "ldapHOST",  "ldap-read-1" => "ldapHOST",  "ldap-read-2-" => "ldapHOST"  );

$wgLDAPUseLocal = false;

$wgLDAPEncryptionType = array( "ldap-write-group"=>"clear",  "ldap-read-1"=>"clear",  "ldap-read-2-"=>"clear"  );

$wgLDAPSearchAttributes = array( "ldap-write-group"=>"uid",  "ldap-read-1"=>"uid",  "ldap-read-2-"=>"uid"  );

$wgLDAPBaseDNs = array( "ldap-write-group"=>"ou=users,dc=,dc=",  "ldap-read-1"=>"ou=users,dc=,dc=",  "ldap-read-2-"=>"ou=users,dc=,dc="  );

$wgLDAPGroupBaseDNs = array( "ldap-write-group"=>"ou=groups,dc=,dc=",  "ldap-read-1"=>"ou=groups,dc=,dc=",  "ldap-read-2-"=>"ou=groups,dc=,dc="  );

$wgLDAPGroupUseFullDN = array( "ldap-write-group"=>true,  "ldap-read-1"=>true,  "ldap-read-2-"=>true  );

$wgLDAPLowerCaseUsername = array( "ldap-write-group"=>true,  "ldap-read-1"=>true,  "ldap-read-2-"=>true  );

$wgLDAPGroupObjectclass = array( "ldap-write-group"=>"groupofuniquenames",  "ldap-read-1"=>"groupofuniquenames",  "ldap-read-2-"=>"groupofuniquenames"  );

$wgLDAPGroupSearchNestedGroups = array( "ldap-write-group"=>false,  "ldap-read-1"=>false,  "ldap-read-2-"=>false  );

$wgLDAPGroupAttribute = array( "ldap-write-group"=>"uniquemember",  "ldap-read-1"=>"uniquemember",  "ldap-read-2-"=>"uniquemember"  );

$wgLDAPGroupNameAttribute = array( "ldap-write-group"=>"cn",  "ldap-read-1"=>"cn",  "ldap-read-2-"=>"cn"  );

$wgLDAPRequireAuthAttribute = array( "ldap-write-group"=>true,  "ldap-read-1"=>true,  "ldap-read-2-"=>true  ); $wgLDAPRequiredGroups = array( "ldap-write-group" => array("cn=ldap-write-group,ou=Groups,dc=,dc="),  "ldap-read-1" => array("cn=ldap-read-1,ou=Groups,dc=,dc="),  "ldap-read-2-" => array("cn=ldap-read-2,ou=Groups,dc=,dc=") );

$wgLDAPLocallyManagedGroups = array( "ldap-write-group" => array( "ldap-write-group" ), "ldap-read-1" => array( "ldap-read-1" ),  "ldap-read-2-" => array( "ldap-read-2" )  );

$wgLDAPGroupsPrevail = array( "ldap-write-group" => false,  "ldap-read-1" => false,  "ldap-read-2-" => false  );

$wgLDAPUseLDAPGroups = array( "ldap-write-group"=>true ); $wgLDAPUseLDAPGroups = array( "ldap-read-1"=>true ); $wgLDAPUseLDAPGroups = array( "ldap-read-2-"=>true );

$wgLDAPGroupsUseMemberOf = array( "ldap-write-group" => true ); $wgLDAPGroupsUseMemberOf = array( "ldap-read-1" => true ); $wgLDAPGroupsUseMemberOf = array( "ldap-read-2-" => true );

$wgLDAPGroupObjectclass = array( "ldap-write-group"=>"groupOfUniqueNames" ); $wgLDAPGroupObjectclass = array( "ldap-read-1"=>"groupOfUniqueNames" ); $wgLDAPGroupObjectclass = array( "ldap-read-2-"=>"groupOfUniqueNames" );

$wgLDAPAddLDAPUsers = false; $wgLDAPUpdateLDAP = false;

$wgLDAPProxyAgent = array( "ldap-write-group"=>"cn=,ou=,dc=,dc=", "ldap-read-1"=>"cn=,ou=,dc=,dc=", "ldap-read-2-"=>"cn=,ou=,dc=,dc=");

$wgLDAPProxyAgentPassword = array( "ldap-write-group"=>"PW", "ldap-read-1"=>"PW", "ldap-read-2-"=>"PW");

$wgLDAPDebug = 99; $wgDebugLogGroups["ldap"] = "/tmp/debug-tech.log" ;

$wgMinimalPasswordLength = 1;


 * 1) LDAP CONFIG##################################################################################

It would be really nice if someone could help me?