HUE-7084 [useradmin] Remove @domain part of username when creating home directory for LDAP user

Review Request #11303 - Created Aug. 10, 2017 and submitted

Sai Chirravuri
hue
master
HUE-7084
47964fa...
hue
cconner, enricoberti, johan, ranade, romain, yingc

commit b03c368e43401ff94a3999481af62b12e04a2a2f
Author: krish krish@cloudera.com
Date: Tue Aug 8 17:38:52 2017 -0700

HUE-7084 [useradmin] Remove @domain part of username when creating home directory for LDAP user

:100644 100644 b7fc2a7... 6ba725e... M apps/useradmin/src/useradmin/views.py

manual with LDAP cluster.

  1. Add LDAP user with'@'
  2. HDFS dir name and user/group perms just show the username part.

& unit test

  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
  1. Test in test_ensure_home_directory ?

  2. apps/useradmin/src/useradmin/views.py (Diff revision 1)
     
     

    Don't we already have this logic in useradmin?

  3. apps/useradmin/src/useradmin/views.py (Diff revision 1)
     
     
     
     

    Could we move the logic out of this function with a 'if ldap' and 2 variables:
    username and ome_directory

    ?

  4. 
      
  1. Nice!

  2. 
      
Review request changed

Status: Closed (submitted)

Loading...