Răsfoiți Sursa

HUE-4872 [useradmin] Fixing Hue silently fails auth for ldap backend if "Create LDAP users on login" is false

Prakash Ranade 9 ani în urmă
părinte
comite
39296fd
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      desktop/core/src/desktop/auth/backend.py

+ 1 - 0
desktop/core/src/desktop/auth/backend.py

@@ -453,6 +453,7 @@ class LdapBackend(object):
       if existing_profile.creation_method == str(UserProfile.CreationMethod.EXTERNAL):
       if existing_profile.creation_method == str(UserProfile.CreationMethod.EXTERNAL):
         is_super = User.objects.get(**username_filter_kwargs).is_superuser
         is_super = User.objects.get(**username_filter_kwargs).is_superuser
     elif not desktop.conf.LDAP.CREATE_USERS_ON_LOGIN.get():
     elif not desktop.conf.LDAP.CREATE_USERS_ON_LOGIN.get():
+      LOG.warn("Create users when they login with their LDAP credentials is turned off")
       return None
       return None
 
 
     try:
     try: