Skip to content

Commit 7f9a38f

Browse files
committed
Group "Users" definitely needs to be hard-ignored.
1 parent 45e42f8 commit 7f9a38f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/LdapSyncCommand.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,6 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
11591159
continue;
11601160
}
11611161

1162-
/* Not sure if these groups actually need to be exempt yet.
11631162
if ("Root" == $gitlabGroupName) {
11641163
$this->logger->info("Gitlab built-in root group will be ignored.");
11651164
continue; // The Gitlab root group should never be updated from LDAP.
@@ -1169,7 +1168,6 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
11691168
$this->logger->info("Gitlab built-in users group will be ignored.");
11701169
continue; // The Gitlab users group should never be updated from LDAP.
11711170
}
1172-
*/
11731171

11741172
$this->logger->info(sprintf("Found Gitlab group #%d \"%s\" [%s].", $gitlabGroupId, $gitlabGroupName, $gitlabGroupPath));
11751173
if (isset($groupsSync["found"][$gitlabGroupId]) || $this->in_array_i($gitlabGroupName, $groupsSync["found"])) {
@@ -1192,12 +1190,10 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
11921190
continue; // The Gitlab root group should never be updated from LDAP.
11931191
}
11941192

1195-
/* Not sure if these groups actually need to be exempt yet.
11961193
if ("Users" == $ldapGroupName) {
11971194
$this->logger->info("Gitlab built-in users group will be ignored.");
11981195
continue; // The Gitlab users group should never be updated from LDAP.
11991196
}
1200-
*/
12011197

12021198
if ($this->in_array_i($ldapGroupName, $config["gitlab"]["options"]["groupNamesToIgnore"])) {
12031199
$this->logger->info(sprintf("Group \"%s\" in ignore list.", $ldapGroupName));
@@ -1235,12 +1231,10 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
12351231
continue; // The Gitlab root group should never be updated from LDAP.
12361232
}
12371233

1238-
/* Not sure if these groups actually need to be exempt yet.
12391234
if ("Users" == $gitlabGroupName) {
12401235
$this->logger->info("Gitlab built-in users group will be ignored.");
12411236
continue; // The Gitlab users group should never be updated from LDAP.
12421237
}
1243-
*/
12441238

12451239
if ($this->in_array_i($gitlabGroupName, $config["gitlab"]["options"]["groupNamesToIgnore"])) {
12461240
$this->logger->info(sprintf("Group \"%s\" in ignore list.", $gitlabGroupName));
@@ -1280,12 +1274,10 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
12801274
continue; // The Gitlab root group should never be updated from LDAP.
12811275
}
12821276

1283-
/* Not sure if these groups actually need to be exempt yet.
12841277
if ("Users" == $gitlabGroupName) {
12851278
$this->logger->info("Gitlab built-in users group will be ignored.");
12861279
continue; // The Gitlab users group should never be updated from LDAP.
12871280
}
1288-
*/
12891281

12901282
if ($this->in_array_i($gitlabGroupName, $config["gitlab"]["options"]["groupNamesToIgnore"])) {
12911283
$this->logger->info(sprintf("Group \"%s\" in ignore list.", $gitlabGroupName));
@@ -1330,12 +1322,10 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
13301322
continue; // The Gitlab root group should never be updated from LDAP.
13311323
}
13321324

1333-
/* Not sure if these groups actually need to be exempt yet.
13341325
if ("Users" == $gitlabGroupName) {
13351326
$this->logger->info("Gitlab built-in users group will be ignored.");
13361327
continue; // The Gitlab users group should never be updated from LDAP.
13371328
}
1338-
*/
13391329

13401330
if ($this->in_array_i($gitlabGroupName, $config["gitlab"]["options"]["groupNamesToIgnore"])) {
13411331
$this->logger->info(sprintf("Group \"%s\" in ignore list.", $gitlabGroupName));

0 commit comments

Comments
 (0)