##// END OF EJS Templates
fixes a bug with two-pass ldap auth (thanks for TK Soh for that)
marcink -
r794:22eca93b beta
parent child Browse files
Show More
@@ -82,8 +82,7 b' class AuthLdap(object):'
82 server.protocol = ldap.VERSION3
82 server.protocol = ldap.VERSION3
83
83
84 if self.LDAP_BIND_DN and self.LDAP_BIND_PASS:
84 if self.LDAP_BIND_DN and self.LDAP_BIND_PASS:
85 login_dn = self.BASE_DN % {'user':uid}
85 server.simple_bind_s(self.LDAP_BIND_DN, self.LDAP_BIND_PASS)
86 server.simple_bind_s(login_dn, self.LDAP_BIND_PASS)
87
86
88 dn = self.BASE_DN % {'user':uid}
87 dn = self.BASE_DN % {'user':uid}
89 log.debug("Authenticating %r at %s", dn, self.LDAP_SERVER)
88 log.debug("Authenticating %r at %s", dn, self.LDAP_SERVER)
General Comments 0
You need to be logged in to leave comments. Login now