1
0
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:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 2fc12864ae
commit 7cad781455

View File

@ -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);