Remove an LDAP user safely on Splunk Enterprise
If you remove a user from your LDAP directory, Splunk Enterprise does not automatically remove the corresponding Splunk user. While this is rarely a problem, if the user has global permissions of any sort, LDAP might generate errors.
Take the following steps to safely remove a Splunk user:
- Back up the
$HOME/splunk/etc/users/$userid
folder. - Search the files under
$HOME/splunk/etc/apps/
for the user ID string to see if the user owns any searches or objects with global permissions. - For any searches or objects that the user owns, change the owner. You can change it any other valid user.
- On search heads, review
splunkd.log
to confirm there are no LDAP authentication errors associated with the user. - Once you have redirected object ownership, you can safely remove the
$HOME/splunk/etc/users/$userid
folder.