Explorar o código

HUE-3132 [core] Fix Sync Ldap users and groups for anonymous binds

Christopher Conner %!s(int64=9) %!d(string=hai) anos
pai
achega
d37f082
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/useradmin/src/useradmin/ldap_access.py

+ 1 - 1
apps/useradmin/src/useradmin/ldap_access.py

@@ -131,7 +131,7 @@ class LdapConnection(object):
 
     self.ldap_handle = ldap.initialize(uri=ldap_url, trace_level=ldap_config.TRACE_LEVEL.get())
 
-    if bind_user is not None:
+    if bind_user:
       try:
         self.ldap_handle.simple_bind_s(bind_user, bind_password)
       except: