changeset 2920:8464d0e96e97 beta

log LDAP_BIND_DN for debugging
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 11 Oct 2012 22:11:00 +0200
parents 29630805893d
children 582224526c23
files rhodecode/lib/auth_ldap.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/auth_ldap.py	Thu Oct 11 20:56:01 2012 +0200
+++ b/rhodecode/lib/auth_ldap.py	Thu Oct 11 22:11:00 2012 +0200
@@ -117,6 +117,8 @@
                 server.start_tls_s()
 
             if self.LDAP_BIND_DN and self.LDAP_BIND_PASS:
+                log.debug('Trying simple_bind with password and given DN: %s'
+                          % self.LDAP_BIND_DN)
                 server.simple_bind_s(self.LDAP_BIND_DN, self.LDAP_BIND_PASS)
 
             filter_ = '(&%s(%s=%s))' % (self.LDAP_FILTER, self.attr_login,