- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
after deleting user and group from openLDAP server its shows in ambari and ranger
- Labels:
-
Apache Ambari
-
Apache Ranger
Created ‎05-28-2018 11:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
