Changeset - d17aa79768f0
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-08-15 18:53:43
marcin@python-works.com
AD fix when search could return empty dn
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/auth_ldap.py
Show inline comments
 
@@ -119,6 +119,9 @@ class AuthLdap(object):
 
                raise ldap.NO_SUCH_OBJECT()
 

	
 
            for (dn, _attrs) in lobjects:
 
                if dn is None:
 
                    continue
 

	
 
                try:
 
                    server.simple_bind_s(dn, password)
 
                    attrs = server.search_ext_s(dn, ldap.SCOPE_BASE,
0 comments (0 inline, 0 general)