You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure, but it seems to be a bug. When I add a user to the userNamesToIgnore list, he is removed from all groups. A little debugging shows that ignored users are not skipped in the deployGitlabUsersAndGroups method.
Particularly ignored users are not skipped in this snippet.
if (isset($membersOfThisGroup[$gitlabUserId]) && $membersOfThisGroup[$gitlabUserId] == $gitlabUserName) {
continue;
}
$this->logger?->info(sprintf("Deleting user #%d \"%s\" from group #%d \"%s\" [%s].", $gitlabUserId, $gitlabUserName, $gitlabGroupId, $gitlabGroupName, $gitlabGroupPath));
$gitlabGroupMember = null;
/** @var GitlabGroupArray|null $gitlabUser */
!$this->dryRun ? ($gitlabGroup = $gitlab->groups()->removeMember($gitlabGroupId, $gitlabUserId)) : $this->logger?->warning("Operation skipped due to dry run.");
Hello and thanks for the helpful tool.
I'm not sure, but it seems to be a bug. When I add a user to the
userNamesToIgnore
list, he is removed from all groups. A little debugging shows that ignored users are not skipped in thedeployGitlabUsersAndGroups
method.Particularly ignored users are not skipped in this snippet.
gitlab-ce-ldap-sync/src/LdapSyncCommand.php
Lines 1913 to 1928 in fab2ace
The text was updated successfully, but these errors were encountered: