summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/common/sidmap.c4
1 files changed, 2 insertions, 2 deletions
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);