This partly reverts commit
6dc463d3e2eb229df1c4f620cfcaf22ac71738d4.
Reverted to allow next revert commits to apply cleanly. Do not recreate
selftest/knownfail.d/usernamemap file.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15087
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
return false;
}
+ DBG_DEBUG("Checking user %s in list\n", user);
+
while (*list) {
const char *p = *list;
- bool check_unix_group = false;
-
- DBG_DEBUG("Checking user '%s' in list '%s'.\n", user, *list);
+ bool ok;
/* Check raw username */
if (strequal(user, p)) {
}
while (*p == '@' || *p == '&' || *p == '+') {
- if (*p == '@' || *p == '+') {
- check_unix_group = true;
- }
p++;
}
- if (check_unix_group && user_in_group(user, p)) {
+ ok = user_in_group(user, p);
+ if (ok) {
return true;
}