summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-13 16:35:53 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-13 16:35:53 +1100
commit44628c43eefa48a700293fe25b9a65ec76f1c1b2 (patch)
treec29d722a60934e4bc365616edf2a5d11c8c28066 /source4/dsdb
parent8b20113517ac8c6886381a56349227426b23bbcf (diff)
downloadsamba-44628c43eefa48a700293fe25b9a65ec76f1c1b2.tar.gz
samba-44628c43eefa48a700293fe25b9a65ec76f1c1b2.tar.bz2
samba-44628c43eefa48a700293fe25b9a65ec76f1c1b2.zip
Don't use 'dn', this attribute does not exist with the LDAP backend,
or in AD. Andrew Bartlett (This used to be commit a3e1f2830679a56366f0080115de504cdb0144f7)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/cracknames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c
index 93da46d5bd..b9333e451b 100644
--- a/source4/dsdb/samdb/cracknames.c
+++ b/source4/dsdb/samdb/cracknames.c
@@ -329,7 +329,7 @@ static WERROR DsCrackNameUPN(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
result_filter = talloc_asprintf(mem_ctx, "(&(objectClass=user)(samAccountName=%s))",
ldb_binary_encode_string(mem_ctx, unparsed_name_short));
- domain_filter = talloc_asprintf(mem_ctx, "(dn=%s)", ldb_dn_get_linearized(domain_res->msgs[0]->dn));
+ domain_filter = talloc_asprintf(mem_ctx, "(distinguishedName=%s)", ldb_dn_get_linearized(domain_res->msgs[0]->dn));
if (!result_filter || !domain_filter) {
free(unparsed_name_short);