changeset 794:22eca93bea97 beta

fixes a bug with two-pass ldap auth (thanks for TK Soh for that)
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 29 Nov 2010 13:55:47 +0100
parents 06a98912325c
children ffd967053e4e
files rhodecode/lib/auth_ldap.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/auth_ldap.py	Mon Nov 29 03:31:29 2010 +0100
+++ b/rhodecode/lib/auth_ldap.py	Mon Nov 29 13:55:47 2010 +0100
@@ -82,8 +82,7 @@
                 server.protocol = ldap.VERSION3
 
             if self.LDAP_BIND_DN and self.LDAP_BIND_PASS:
-                login_dn = self.BASE_DN % {'user':uid}
-                server.simple_bind_s(login_dn, self.LDAP_BIND_PASS)
+                server.simple_bind_s(self.LDAP_BIND_DN, self.LDAP_BIND_PASS)
 
             dn = self.BASE_DN % {'user':uid}
             log.debug("Authenticating %r at %s", dn, self.LDAP_SERVER)