瀏覽代碼

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

Prakash Ranade 9 年之前
父節點
當前提交
39296fd
共有 1 個文件被更改,包括 1 次插入0 次删除
  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):
         is_super = User.objects.get(**username_filter_kwargs).is_superuser
     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
 
     try: