From: Matthieu Patou Date: Tue, 25 Sep 2012 17:51:47 +0000 (-0700) Subject: drs-crackname: if there is no sid do not return the domain X-Git-Tag: ldb-1.1.14~358 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f98abc7baaba7b2ea7f40b447535d5998eb819e4;p=thirdparty%2Fsamba.git drs-crackname: if there is no sid do not return the domain --- diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c index 9fc377da428..c366019c56c 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; }