summaryrefslogtreecommitdiff
path: root/source4/ldap_server/ldap_bind.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-19 15:14:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:50 -0500
commit89278a1469fe8f6c6080d6cb6b81de504802470d (patch)
tree34c433d3703ffcc6f6ad321141346646caf33281 /source4/ldap_server/ldap_bind.c
parentc2e492ece3e5dd39c3c113dfe7f745fc900a5dc0 (diff)
downloadsamba-89278a1469fe8f6c6080d6cb6b81de504802470d.tar.gz
samba-89278a1469fe8f6c6080d6cb6b81de504802470d.tar.bz2
samba-89278a1469fe8f6c6080d6cb6b81de504802470d.zip
r20906: allow LDAP simple binds using the following syntaxes in the DN field:
CN=Administrator,CN=Users,DC=w2k3,DC=vmnet1,DC=vm,DC=base Administrator@W2K3 W2K3\Administrator w2k3.vmnet1.vm.base/Users/Administrator w2k3 also allows this (and maybe more...?) metze (This used to be commit 40c27ef88df9021e9ef2a6c43aabab709ac9662f)
Diffstat (limited to 'source4/ldap_server/ldap_bind.c')
-rw-r--r--source4/ldap_server/ldap_bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_bind.c b/source4/ldap_server/ldap_bind.c
index f88d08e822..3d5df58e21 100644
--- a/source4/ldap_server/ldap_bind.c
+++ b/source4/ldap_server/ldap_bind.c
@@ -45,7 +45,7 @@ static NTSTATUS ldapsrv_BindSimple(struct ldapsrv_call *call)
DEBUG(10, ("BindSimple dn: %s\n",req->dn));
- status = crack_dn_to_nt4_name(call, req->dn, &nt4_domain, &nt4_account);
+ status = crack_auto_name_to_nt4_name(call, req->dn, &nt4_domain, &nt4_account);
if (NT_STATUS_IS_OK(status)) {
status = authenticate_username_pw(call,
call->conn->connection->event.ctx,