summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-12 12:38:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:50:03 -0500
commit743fbb9261f7923ce15eef3a9fb84394f792febf (patch)
treea37e23fc659621c31074ff886af57188b5c38dd7
parentc0bcbd448cce4ae41252c7ec691b7065c26eb82c (diff)
downloadsamba-743fbb9261f7923ce15eef3a9fb84394f792febf.tar.gz
samba-743fbb9261f7923ce15eef3a9fb84394f792febf.tar.bz2
samba-743fbb9261f7923ce15eef3a9fb84394f792febf.zip
r22196: give better error codes to make RPC-UNIXINFO pass
metze (This used to be commit 0096e068d02b5e09fed94373a7018ec0a58fb6d6)
-rw-r--r--source4/dsdb/common/sidmap.c12
1 files changed, 6 insertions, 6 deletions
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) {