mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-24 02:24:39 +00:00
Fix the comments
This commit is contained in:
parent
9d40ae1aa7
commit
3d28433b5b
@ -551,21 +551,21 @@ function sync_LDAP_groups(){
|
||||
|
||||
$qry->Exec('sync_LDAP',__LINE__,__FILE__);
|
||||
|
||||
while($db_group = $qry->Fetch()) {
|
||||
while ($db_group = $qry->Fetch()) {
|
||||
$db_groups[$db_group->group_name] = $db_group->group_name;
|
||||
$db_group_members[$db_group->group_name][] = $db_group->member_name;
|
||||
}
|
||||
|
||||
$ldap_groups = array_keys($ldap_groups_info);
|
||||
|
||||
// users only in ldap
|
||||
$groups_to_create = array_diff($ldap_groups,$db_groups);
|
||||
// groups only in ldap
|
||||
$groups_to_create = array_diff($ldap_groups, $db_groups);
|
||||
|
||||
// users only in db
|
||||
$groups_to_deactivate = array_diff($db_groups,$ldap_groups);
|
||||
// groups only in db
|
||||
$groups_to_deactivate = array_diff($db_groups, $ldap_groups);
|
||||
|
||||
// users present in ldap and in the db
|
||||
$groups_to_update = array_intersect($db_groups,$ldap_groups);
|
||||
// groups present in ldap and in the db
|
||||
$groups_to_update = array_intersect($db_groups, $ldap_groups);
|
||||
|
||||
// groups where nothing was done
|
||||
$groups_nothing_done[] = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user