git.samba.org
/
ambi
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e332f98
)
drs-crackname: if there is no sid do not return the domain
author
Matthieu Patou
<mat@matws.net>
Tue, 25 Sep 2012 17:51:47 +0000
(10:51 -0700)
committer
Matthieu Patou
<mat@matws.net>
Mon, 8 Oct 2012 04:51:01 +0000
(21:51 -0700)
source4/dsdb/samdb/cracknames.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/samdb/cracknames.c
b/source4/dsdb/samdb/cracknames.c
index 9fc377da42802f07a944497fdb0dfae585f4adab..c366019c56cf09ceb24a10b0dfee14bd22c63356 100644
(file)
--- 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;
}