Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari AD Sync - UserIds are created in lowercase

Ambari AD Sync - UserIds are created in lowercase

New Contributor

Hi All,

When I sync LDAP/AD with Ambari, users are being created in lowercase in Ambari whereas our users are case-sensitive.

Since users are created in lowercase, HDFS home directories are being created in lowercase. But users are connecting to gateway boxes using the case-sensitive UserIDs.

Has anyone faced this issue and resolved ? Please provide your valuable inputs to overcome the issue being faced.

Thanks,

4 REPLIES 4

Re: Ambari AD Sync - UserIds are created in lowercase

Super Collaborator

Hi @D Giri,

can you please check/set the parameter

authentication.ldap.username.forceLowercase=false

at /etc/amabari-server/conf/ambari.properties and restart the ambari-server,

and also please ensure that all the current users are clean up before re-sync the users so that the in stares with actual case in ambari DB.

PS : this fix is available from the ambari versions 2.4.3 and 2.5.0 onwards only.

Hope this Helps !!

Re: Ambari AD Sync - UserIds are created in lowercase

New Contributor

Thanks @bkosaraju for the quick response.

Somehow it didn't help me.

Here is what i have done.

1. Remove LDAP users using below command

curl --insecure -u admin:$PASSWORD -H 'X-Requested-By: ambari' -X DELETE http://$AMBARI_HOST:8080/api/v1/users/myUser

2. Update /etc/amabari-server/conf/ambari.properties with below parameter

authentication.ldap.username.forceLowercase=false

3. Restart Ambari server.

4. Sync single ldap user using below command

ambari-server sync-ldap --users users

Still I'm getting same results, its creating lowercase account and lowercase HDFS user directories.

Am I missing anything ?

HDP : 2.6.1.0

Ambari : 2.5.1.0

Highlighted

Re: Ambari AD Sync - UserIds are created in lowercase

Super Collaborator

Hi @D Giri,

here is the JIRA details for the issue you have raised, looks the patch has not been committed to the version you are using.

Re: Ambari AD Sync - UserIds are created in lowercase

New Contributor

Thanks @bkosaraju for the response and details.