# HG changeset patch # User Marcin Kuzminski # Date 2010-11-29 12:55:47 # Node ID 22eca93bea974f1349d3de39fc282c03533e91b0 # Parent 06a98912325c1ada47b5e6d380b534f39b37a3ab fixes a bug with two-pass ldap auth (thanks for TK Soh for that) diff --git a/rhodecode/lib/auth_ldap.py b/rhodecode/lib/auth_ldap.py --- a/rhodecode/lib/auth_ldap.py +++ b/rhodecode/lib/auth_ldap.py @@ -82,8 +82,7 @@ class AuthLdap(object): 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)