From 743fbb9261f7923ce15eef3a9fb84394f792febf Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 12 Apr 2007 12:38:32 +0000 Subject: r22196: give better error codes to make RPC-UNIXINFO pass metze (This used to be commit 0096e068d02b5e09fed94373a7018ec0a58fb6d6) --- source4/dsdb/common/sidmap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/dsdb/common/sidmap.c') diff --git a/source4/dsdb/common/sidmap.c b/source4/dsdb/common/sidmap.c index 67649c1218..18a0a4c8d6 100644 --- a/source4/dsdb/common/sidmap.c +++ b/source4/dsdb/common/sidmap.c @@ -211,7 +211,7 @@ allocated_sid: dom_sid_string(tmp_ctx, sid))); talloc_free(tmp_ctx); - return NT_STATUS_INVALID_SID; + return NT_STATUS_NONE_MAPPED; } @@ -344,7 +344,7 @@ allocated_sid: dom_sid_string(tmp_ctx, sid))); talloc_free(tmp_ctx); - return NT_STATUS_INVALID_SID; + return NT_STATUS_NONE_MAPPED; } @@ -426,7 +426,7 @@ _PUBLIC_ NTSTATUS sidmap_uid_to_sid(struct sidmap_context *sidmap, */ allocate_sid: if (uid > SIDMAP_MAX_LOCAL_UID) { - return NT_STATUS_INVALID_SID; + return NT_STATUS_NONE_MAPPED; } status = sidmap_primary_domain_sid(sidmap, tmp_ctx, &domain_sid); @@ -524,7 +524,7 @@ _PUBLIC_ NTSTATUS sidmap_gid_to_sid(struct sidmap_context *sidmap, */ allocate_sid: if (gid > SIDMAP_MAX_LOCAL_GID) { - return NT_STATUS_INVALID_SID; + return NT_STATUS_NONE_MAPPED; } status = sidmap_primary_domain_sid(sidmap, tmp_ctx, &domain_sid); @@ -565,14 +565,14 @@ _PUBLIC_ NTSTATUS sidmap_allocated_sid_lookup(struct sidmap_context *sidmap, if (!dom_sid_in_domain(domain_sid, sid)) { talloc_free(tmp_ctx); - return NT_STATUS_INVALID_SID; + return NT_STATUS_NONE_MAPPED; } talloc_free(tmp_ctx); rid = sid->sub_auths[sid->num_auths-1]; if (rid < SIDMAP_LOCAL_USER_BASE) { - return NT_STATUS_INVALID_SID; + return NT_STATUS_NONE_MAPPED; } if (rid < SIDMAP_LOCAL_GROUP_BASE) { -- cgit