فهرست منبع

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

Prakash Ranade 10 سال پیش
والد
کامیت
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: