summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-08-21 11:34:05 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-08-21 11:34:05 +0000
commit7cad7814555645aa3bee95fb48fbd694e6a9e313 (patch)
tree9198ac82f00072daa95c7a1bc308501081c60df3
parent2fc12864ae78ea08d8cb4e3b1c7e341ca4a854e6 (diff)
downloadsamba-7cad7814555645aa3bee95fb48fbd694e6a9e313.tar.gz
samba-7cad7814555645aa3bee95fb48fbd694e6a9e313.tar.xz
samba-7cad7814555645aa3bee95fb48fbd694e6a9e313.zip
Cope with non-unix accounts - we just won't get the groups for those users.
Andrew Bartlett
-rw-r--r--source/auth/auth_util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c
index 51b8005634e..210c4d09f92 100644
--- a/source/auth/auth_util.c
+++ b/source/auth/auth_util.c
@@ -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);