From 07dbe5af57414d20a370920d0467d36a69b2f03a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 21 Aug 2002 11:34:05 +0000 Subject: Cope with non-unix accounts - we just won't get the groups for those users. Andrew Bartlett (This used to be commit 7cad7814555645aa3bee95fb48fbd694e6a9e313) --- source3/auth/auth_util.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/auth') 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); -- cgit