Support Questions

Find answers, ask questions, and share your expertise

Is it possible to replace white space with another character like underscore when syncing users and groups from LDAP to Ambari?

Contributor

Is it possible to replace white space with another character like underscore when syncing users and groups from LDAP to Ambari?

e.g. "Takefumi Oide" -> "Takefumi_Oide"

If yes, How?

1 ACCEPTED SOLUTION

Hi @Takefumi Oide ,

there is no way we can replace the white space in CN while you are syncing the LDAP to ambari.

you might need to do it in LDAP only using ldapmodify command.

Ambari just performs the sync based on the command like : ambari-server sync-ldap --ldap-sync-admin-name=admin --ldap-sync-admin-password=admin --all

but in ranger, you can achieve the same.

Follow this doc for the same : https://community.hortonworks.com/articles/86353/converting-spaces-in-usernames-or-group-names-in-r....

View solution in original post

2 REPLIES 2

Hi @Takefumi Oide ,

there is no way we can replace the white space in CN while you are syncing the LDAP to ambari.

you might need to do it in LDAP only using ldapmodify command.

Ambari just performs the sync based on the command like : ambari-server sync-ldap --ldap-sync-admin-name=admin --ldap-sync-admin-password=admin --all

but in ranger, you can achieve the same.

Follow this doc for the same : https://community.hortonworks.com/articles/86353/converting-spaces-in-usernames-or-group-names-in-r....

Contributor

Thank you for your answer!