The Samba-Bugzilla – Attachment 8053 Details for
Bug 9253
crackname returns a dns domain name even if there is no cracked SID
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch to fix the problem: do not set the domain if no SIDs
0004-drs-crackname-if-there-is-no-sid-do-not-return-the-d.patch (text/plain), 1.05 KB, created by
Matthieu Patou
on 2012-10-13 06:44:23 UTC
(
hide
)
Description:
Proposed patch to fix the problem: do not set the domain if no SIDs
Filename:
MIME Type:
Creator:
Matthieu Patou
Created:
2012-10-13 06:44:23 UTC
Size:
1.05 KB
patch
obsolete
>From f98abc7baaba7b2ea7f40b447535d5998eb819e4 Mon Sep 17 00:00:00 2001 >From: Matthieu Patou <mat@matws.net> >Date: Tue, 25 Sep 2012 10:51:47 -0700 >Subject: [PATCH 04/20] drs-crackname: if there is no sid do not return the > domain > >--- > source4/dsdb/samdb/cracknames.c | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c >index 9fc377d..c366019 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; > } >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
abartlet
:
review+
Actions:
View
Attachments on
bug 9253
: 8053