summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-09-25 10:51:47 -0700
committerMatthieu Patou <mat@matws.net>2012-10-07 21:51:01 -0700
commitf98abc7baaba7b2ea7f40b447535d5998eb819e4 (patch)
treed9bd6975d37f7788cdc42bf14ad378e4659cf447 /source4/dsdb/samdb
parente332f989091411602ef7f286ebb2f5b1462550e4 (diff)
downloadsamba-f98abc7baaba7b2ea7f40b447535d5998eb819e4.tar.gz
samba-f98abc7baaba7b2ea7f40b447535d5998eb819e4.tar.bz2
samba-f98abc7baaba7b2ea7f40b447535d5998eb819e4.zip
drs-crackname: if there is no sid do not return the domain
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/cracknames.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c
index 9fc377da42..c366019c56 100644
--- a/source4/dsdb/samdb/cracknames.c
+++ b/source4/dsdb/samdb/cracknames.c
@@ -638,6 +638,7 @@ WERROR DsCrackNameOneName(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
domain_filter = NULL;
if (!sid) {
+ info1->dns_domain_name = NULL;
info1->status = DRSUAPI_DS_NAME_STATUS_NOT_FOUND;
return WERR_OK;
}
@@ -1195,6 +1196,7 @@ static WERROR DsCrackNameOneFilter(struct ldb_context *sam_ctx, TALLOC_CTX *mem_
}
case DRSUAPI_DS_NAME_FORMAT_DNS_DOMAIN:
case DRSUAPI_DS_NAME_FORMAT_SID_OR_SID_HISTORY: {
+ info1->dns_domain_name = NULL;
info1->status = DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR;
return WERR_OK;
}