mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Cope with non-unix accounts - we just won't get the groups for those users.
Andrew Bartlett
This commit is contained in:
parent
2fc12864ae
commit
7cad781455
@ -627,8 +627,10 @@ static NTSTATUS get_user_groups_from_local_sam(const DOM_SID *user_sid,
|
||||
*groups = NULL;
|
||||
|
||||
if (!sid_to_uid(user_sid, &uid, &snu)) {
|
||||
DEBUG(2, ("get_user_groups_from_local_sam: Failed to convert user SID %s to a uid!\n", sid_to_string(str, user_sid)));
|
||||
return NT_STATUS_NO_SUCH_USER;
|
||||
DEBUG(2, ("get_user_groups_from_local_sam: Failed to convert user SID %s to a uid!\n",
|
||||
sid_to_string(str, user_sid)));
|
||||
/* This might be a non-unix account */
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
usr = getpwuid_alloc(uid);
|
||||
|
Loading…
Reference in New Issue
Block a user