From 0bfa0d115c18ab48cd53cbdc3dba6a110ce148c3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 13 Apr 2006 12:13:40 +0000 Subject: r15076: give the correct return code metze (This used to be commit 92a06638126b0565c0aec45862c549ef91e7212b) --- source4/dsdb/common/sidmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/common/sidmap.c') diff --git a/source4/dsdb/common/sidmap.c b/source4/dsdb/common/sidmap.c index ee314cddec..2b1de42cf0 100644 --- a/source4/dsdb/common/sidmap.c +++ b/source4/dsdb/common/sidmap.c @@ -264,7 +264,7 @@ _PUBLIC_ NTSTATUS sidmap_sid_to_unixgid(struct sidmap_context *sidmap, DEBUG(0,("unixName '%s' for sid %s does not exist as a local group\n", s, dom_sid_string(tmp_ctx, sid))); talloc_free(tmp_ctx); - return NT_STATUS_NO_SUCH_USER; + return NT_STATUS_NO_SUCH_GROUP; } *gid = grp->gr_gid; talloc_free(tmp_ctx); @@ -278,7 +278,7 @@ _PUBLIC_ NTSTATUS sidmap_sid_to_unixgid(struct sidmap_context *sidmap, if (!grp) { DEBUG(0,("sAMAccountName '%s' for sid %s does not exist as a local group\n", s, dom_sid_string(tmp_ctx, sid))); talloc_free(tmp_ctx); - return NT_STATUS_NO_SUCH_USER; + return NT_STATUS_NO_SUCH_GROUP; } *gid = grp->gr_gid; talloc_free(tmp_ctx); -- cgit