Created 05-28-2018 11:51 AM
HI,
I have configured openLDAP Server. I have synced LDAP users and groups with ranger as well as ambari.
After deleting the users and groups from openLDAP server, it do not deletes from Ambari and ranger databases.
It do not allow to login using deleted user but it shows in UI.
How to automatically delete users and groups from Ambari and ranger database when users and groups are deleted from openLDAP Server ?
Thank You.
Created 05-29-2018 07:20 AM
The below command you gave worked for me.
ambari-server sync-ldap --existing
you can use this option to synchronize only those entities that are in Ambari with LDAP. Users and groups will be removed from Ambari if they no longer exist in LDAP.
But,we can use 'all' mode with sync-ldap, that will synchronize those entities that are in Ambari with LDAP, means syncs new entries to the ambari as well as removes entries from Ambari if they no longer exist in LDAP.
ambari-server sync-ldap --all
so, we can add and remove entries to the Ambari at the same time using single command.
Thanks.
Created 05-28-2018 04:02 PM
If users and groups are deleted in openLDAP server you should use 'existing' mode with ambari ldap sync:
ambari-server sync-ldap --existing
Created 05-29-2018 07:20 AM
The below command you gave worked for me.
ambari-server sync-ldap --existing
you can use this option to synchronize only those entities that are in Ambari with LDAP. Users and groups will be removed from Ambari if they no longer exist in LDAP.
But,we can use 'all' mode with sync-ldap, that will synchronize those entities that are in Ambari with LDAP, means syncs new entries to the ambari as well as removes entries from Ambari if they no longer exist in LDAP.
ambari-server sync-ldap --all
so, we can add and remove entries to the Ambari at the same time using single command.
Thanks.