HUE-8053 [useradmin] LDAP authentication with sync_groups_on_login=true fails with KeyError exception

Review Request #12624 - Created March 7, 2018 and submitted

Ying Chen
hue
master
HUE-8053
hue
enricoberti, jgauthier, johan, ranade, romain, weixia
commit 6724720b6a7f961c9e229120bb352de78fd55a35 (HEAD -> HUE-8053-ldap)
Author: Ben Gooley <bgooley@cloudera.com>
Date:   Wed Mar 7 15:01:01 2018 -0800

    HUE-8053 [useradmin] LDAP authentication with sync_groups_on_login=true fails with KeyError exception

:100644 100644 c1c9da716c... 9d77ed99b0... M    apps/useradmin/src/useradmin/views.py
Test done with single LDAP server and multiple LDAP Servers.
  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
  1. 
      
  2. apps/useradmin/src/useradmin/views.py (Diff revision 2)
     
     

    Why do we need the if?

    There is a chance ldap_config won't be defined if we don't do

    ldap_config = desktop.conf.LDAP.LDAP_SERVERS.get()[server]

  3. 
      
  1. Ship It!
  2. 
      
Review request changed

Status: Closed (submitted)

Loading...