diff options
author | Matthieu Patou <mat@matws.net> | 2013-06-30 02:03:02 -0700 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2013-08-06 21:22:05 -0700 |
commit | 552b4f3e022dca594e1dada7979fe351eee8cf9b (patch) | |
tree | aea457fbff418b92d1cbbd74570b89bff56b60b8 | |
parent | aa17a2c01dbab2e522a8ccccaed7943963bab5b9 (diff) | |
download | samba-552b4f3e022dca594e1dada7979fe351eee8cf9b.tar.gz samba-552b4f3e022dca594e1dada7979fe351eee8cf9b.tar.bz2 samba-552b4f3e022dca594e1dada7979fe351eee8cf9b.zip |
drs-cracknames: When cracking NT4 names we should just look at netbios for the match
Looking at dnsRoot will yield a result for domain.tld\username when it
shouldn't work.
Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Andrew Bartlett <abarlett@samba.org>
-rw-r--r-- | source4/dsdb/samdb/cracknames.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c index 388b6c7cec..628546e959 100644 --- a/source4/dsdb/samdb/cracknames.c +++ b/source4/dsdb/samdb/cracknames.c @@ -577,8 +577,7 @@ WERROR DsCrackNameOneName(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx, } domain_filter = talloc_asprintf(mem_ctx, - "(&(objectClass=crossRef)(|(dnsRoot=%s)(netbiosName=%s))(systemFlags:%s:=%u))", - ldb_binary_encode_string(mem_ctx, domain), + "(&(objectClass=crossRef)(netbiosName=%s)(systemFlags:%s:=%u))", ldb_binary_encode_string(mem_ctx, domain), LDB_OID_COMPARATOR_AND, SYSTEM_FLAG_CR_NTDS_DOMAIN); |