HUE-8691 [useradmin] Fix importing users failed silently if objectClass posixGroup exists in group

Review Request #13621 - Created Feb. 14, 2019 and submitted

Ying Chen
hue
master
HUE-8691
hue
bgooley, jgauthier, johan, romain, weixia
commit 520abf271ac85ba757f3e5e775f1bc4ec1e23c9f (HEAD -> master)
Author: Ben Gooley <bgooley@cloudera.com>
Date:   Wed Feb 13 16:44:24 2019 -0800

    HUE-8691 [useradmin] Fix importing users failed silently if objectClass posixGroup exists in group

:100644 100644 4fc1311485... 75be5d5e38... M    apps/useradmin/src/useradmin/ldap_access.py


  • 1
  • 0
  • 2
  • 0
  • 3
Description From Last Updated
This line is causing an issue for our instance: if group_member_attr in data and group_member_attr not in 'memberUid': because our ... Jeff Nylen
  1. 
      
  2. could we log with WARN instead of DEBUG?

  3. 
      
Review request changed

Status: Closed (submitted)

  1. 
      
  2. This line is causing an issue for our instance:

    if group_member_attr in data and group_member_attr not in 'memberUid':

    because our 'group_member_attr' is 'member' and python obviously finds that 'in' 'memberUid'

    This causes our group import to fail to import users, because the 'members' key never gets set in the 'ldap_info' object.

    Changing to group_member_attr != 'memberUid' fixed this issue for us, and hue is able to import users again.

  3. 
      
Loading...