summaryrefslogtreecommitdiff
path: root/source3/auth
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
commit07dbe5af57414d20a370920d0467d36a69b2f03a (patch)
tree363c73cbb3afac466a94b04b0185230157fdc9b9 /source3/auth
parente45720be141e0a8f112446b24b3f95fa98d2a6a2 (diff)
downloadsamba-07dbe5af57414d20a370920d0467d36a69b2f03a.tar.gz
samba-07dbe5af57414d20a370920d0467d36a69b2f03a.tar.bz2
samba-07dbe5af57414d20a370920d0467d36a69b2f03a.zip
Cope with non-unix accounts - we just won't get the groups for those users.
Andrew Bartlett (This used to be commit 7cad7814555645aa3bee95fb48fbd694e6a9e313)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 51b8005634..210c4d09f9 100644
--- a/source3/auth/auth_util.c
+++ b/source3/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);