You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently configuring Apache Hue to work with LDAP authentication. In our setup, all users in LDAP are defined in uppercase, and I would like to ensure that usernames are forced to uppercase during login to maintain consistency and compatibility, particularly with Ranger, which synchronizes users in uppercase.
To achieve this, I have configured the following parameters in hue.ini:
# Force usernames to lowercase when creating new users from LDAP.
# Takes precedence over force_username_uppercase
force_username_lowercase=false
# Force usernames to uppercase, cannot be combined with force_username_lowercase
force_username_uppercase=true
However, despite this configuration, upon first login to Apache Hue, users are authenticated successfully, but the username is created in lowercase. This discrepancy causes issues with Ranger.
After further analysis, I reviewed the file desktop/core/src/desktop/auth/backend.py and noticed that it calls Django's django_auth_ldap backend located at build/env/lib/python3.8/site-packages/django_auth_ldap/backend.py. Specifically, at line 232 in the Django LDAP backend, usernames seem to be forced to lowercase.
Would you have any suggestions or workarounds to ensure usernames are created in uppercase during login? Your guidance on resolving this issue would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am currently configuring Apache Hue to work with LDAP authentication. In our setup, all users in LDAP are defined in uppercase, and I would like to ensure that usernames are forced to uppercase during login to maintain consistency and compatibility, particularly with Ranger, which synchronizes users in uppercase.
To achieve this, I have configured the following parameters in hue.ini:
However, despite this configuration, upon first login to Apache Hue, users are authenticated successfully, but the username is created in lowercase. This discrepancy causes issues with Ranger.
After further analysis, I reviewed the file desktop/core/src/desktop/auth/backend.py and noticed that it calls Django's django_auth_ldap backend located at build/env/lib/python3.8/site-packages/django_auth_ldap/backend.py. Specifically, at line 232 in the Django LDAP backend, usernames seem to be forced to lowercase.
Would you have any suggestions or workarounds to ensure usernames are created in uppercase during login? Your guidance on resolving this issue would be greatly appreciated.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions