summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-03 09:17:01 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-03 09:17:01 +0100
commit07e18e8f7c5687d00160a1760411099736444c7c (patch)
tree9ffc32893847367b1c11c04e953694526a37d7aa /source4
parent6bfa21f62410d1617d1d9d5208584fe9528810f5 (diff)
downloadsamba-07e18e8f7c5687d00160a1760411099736444c7c.tar.gz
samba-07e18e8f7c5687d00160a1760411099736444c7c.tar.bz2
samba-07e18e8f7c5687d00160a1760411099736444c7c.zip
s4:auth/sam.c - specify the SID ignore case better
As per suggestion by metze.
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/sam.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/auth/sam.c b/source4/auth/sam.c
index 6203b960c4..cbaa2699c7 100644
--- a/source4/auth/sam.c
+++ b/source4/auth/sam.c
@@ -325,12 +325,18 @@ NTSTATUS authsam_expand_nested_groups(struct ldb_context *sam_ctx,
}
status = dsdb_get_extended_dn_sid(dn, &sid, "SID");
- if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
/* If we fail finding a SID then this is no error since it could
* be a non SAM object - e.g. a group with object class
* "groupOfNames" */
talloc_free(tmp_ctx);
return NT_STATUS_OK;
+ } else if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0, (__location__ ": when parsing DN %s we failed to parse our SID component, so we cannot calculate the group token: %s\n",
+ ldb_dn_get_extended_linearized(tmp_ctx, dn, 1),
+ nt_errstr(status)));
+ talloc_free(tmp_ctx);
+ return status;
}
if (!sam_ctx) {