svn commit: samba r22196 - in
branches/SAMBA_4_0/source/dsdb/common: .
metze at samba.org
metze at samba.org
Thu Apr 12 12:38:32 GMT 2007
Author: metze
Date: 2007-04-12 12:38:32 +0000 (Thu, 12 Apr 2007)
New Revision: 22196
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22196
Log:
give better error codes to make RPC-UNIXINFO pass
metze
Modified:
branches/SAMBA_4_0/source/dsdb/common/sidmap.c
Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/common/sidmap.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/common/sidmap.c 2007-04-12 11:59:38 UTC (rev 22195)
+++ branches/SAMBA_4_0/source/dsdb/common/sidmap.c 2007-04-12 12:38:32 UTC (rev 22196)
@@ -211,7 +211,7 @@
dom_sid_string(tmp_ctx, sid)));
talloc_free(tmp_ctx);
- return NT_STATUS_INVALID_SID;
+ return NT_STATUS_NONE_MAPPED;
}
@@ -344,7 +344,7 @@
dom_sid_string(tmp_ctx, sid)));
talloc_free(tmp_ctx);
- return NT_STATUS_INVALID_SID;
+ return NT_STATUS_NONE_MAPPED;
}
@@ -426,7 +426,7 @@
*/
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 @@
*/
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 @@
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) {
More information about the samba-cvs
mailing list