<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79414#M2637</link>
    <description>&lt;P&gt;For those of you on *Nix machines would be able to do something like this:&lt;/P&gt;

&lt;P&gt;cd $SPLUNK_HOME/etc&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;for x in `find . -name 'local.meta'`; do cp $x $x.old ; sed s/olduser/newuser/ &amp;lt; $x &amp;gt; $x.new ; mv -f $x.new $x ; done
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will make a backup of the local.meta, swap out the olduser for the newuser and copy it over the local.meta.  All you should have to do is restart Splunk.&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2014 17:56:05 GMT</pubDate>
    <dc:creator>bosburn_splunk</dc:creator>
    <dc:date>2014-02-04T17:56:05Z</dc:date>
    <item>
      <title>How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79411#M2634</link>
      <description>&lt;P&gt;I've got some users who are no longer around in my Splunk instance and I want to remove the user created objects. Is there a procedure I can follow for this task?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 23:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79411#M2634</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2013-01-04T23:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79412#M2635</link>
      <description>&lt;P&gt;The intersection of LDAP and Splunk users is a challenge when it comes to user-created objects, as Splunk won't clean-out user folders or other objects if their authentication fails.&lt;/P&gt;

&lt;P&gt;-- splunkd.log errors seen--&lt;BR /&gt;
ERROR UserManagerPro - Failed to get LDAP user="my_user" from any configured servers &lt;BR /&gt;
ERROR AuthenticationManagerLDAP - Could not find user="my_user" with strategy="LDAP_or_AD_config"&lt;BR /&gt;
ERROR ConfObjectManagerDB - Cannot initialize: /opt/splunk/search/splunk/etc/users/$userid/user-prefs/metadata/local.meta: No such file or directory&lt;BR /&gt;
-- end splunkd.log example --&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Back up the splunk/etc/users/$userid folder. &lt;/LI&gt;
&lt;LI&gt;Search the files under splunk/etc/apps/ for the $userid string, which should show if the userid in question has ownership of a search or object that was elevated to Global permissions. &lt;/LI&gt;
&lt;LI&gt;Note the files and paths (look for splunk/etc/apps/*/metadata/local.meta) and search inside them for the userid. Change the owner to an admin user or yourself or to a maintenance account. Whichever you find easier as long as the account can authenticate properly. &lt;/LI&gt;
&lt;LI&gt;Restart Splunk services on the host.&lt;/LI&gt;
&lt;LI&gt;Check splunkd.log on the search head to validate the LDAP auth errors have subsided. &lt;/LI&gt;
&lt;LI&gt;Remove the splunk/etc/users/$userid folder.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79412#M2635</guid>
      <dc:creator>ekost</dc:creator>
      <dc:date>2020-09-28T13:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79413#M2636</link>
      <description>&lt;P&gt;If you see many errors about missing user in the splunkd.log, this is because deleted LDAP users still own objects in splunk, by example a scheduled search.&lt;BR /&gt;
and you should clean it&lt;BR /&gt;
Delete the objects/profile or migrate them to another user or an app. See answer below.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 01:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79413#M2636</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-11T01:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79414#M2637</link>
      <description>&lt;P&gt;For those of you on *Nix machines would be able to do something like this:&lt;/P&gt;

&lt;P&gt;cd $SPLUNK_HOME/etc&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;for x in `find . -name 'local.meta'`; do cp $x $x.old ; sed s/olduser/newuser/ &amp;lt; $x &amp;gt; $x.new ; mv -f $x.new $x ; done
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will make a backup of the local.meta, swap out the olduser for the newuser and copy it over the local.meta.  All you should have to do is restart Splunk.&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 17:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79414#M2637</guid>
      <dc:creator>bosburn_splunk</dc:creator>
      <dc:date>2014-02-04T17:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79415#M2638</link>
      <description>&lt;P&gt;This is money&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 16:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79415#M2638</guid>
      <dc:creator>jravida</dc:creator>
      <dc:date>2015-05-26T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79416#M2639</link>
      <description>&lt;P&gt;I wrapped this up in a script and it works perfectly - really nice solution to the problem here, bit surprised Splunk haven't got something out of the box for you to fix this problem. We had a set of administrators leave and this caused some pain.&lt;/P&gt;

&lt;P&gt;The only addition I would make. is automating the removal of the user id folder as explained above (after creating a backup) then perform a refresh (as mentioned in &lt;A href="https://answers.splunk.com/answers/168898/how-can-we-find-all-the-searches-alerts-dashboard.html"&gt;https://answers.splunk.com/answers/168898/how-can-we-find-all-the-searches-alerts-dashboard.html&lt;/A&gt;) for the config settings to take affect - I didn't need to restart the splunk services for this to work.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Warning&lt;/STRONG&gt;: Make sure you test this in development environments first, has the chance to be very costly when overwriting so many config files in bulk, even if temporarily until it can be reverted.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 17:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79416#M2639</guid>
      <dc:creator>LewisWheeler</dc:creator>
      <dc:date>2015-12-22T17:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79417#M2640</link>
      <description>&lt;P&gt;What about Splunk cloud users?  Is this something that cloud ops needs to handle or can these items be migrated through the UI?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 18:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79417#M2640</guid>
      <dc:creator>AZYeti</dc:creator>
      <dc:date>2017-08-03T18:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79418#M2641</link>
      <description>&lt;P&gt;Seeing as you don't have access to the configuration files as part of the Splunk Cloud SaaS solution - then it is 100% something Splunk should take care of. They SHOULD have alerting in place that notifies them when the error message comes up in the log entries, then resolve it - but I wouldn't be surprised if you also have to raise an incident to formally ask them to remove the user dir.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 19:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79418#M2641</guid>
      <dc:creator>LewisWheeler</dc:creator>
      <dc:date>2017-08-03T19:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk manage LDAP or AD user-created objects if the user is no longer active?</title>
      <link>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79419#M2642</link>
      <description>&lt;P&gt;Please note that with the release of Splunk 6.6, there's a feature to find, alert, and manage orphaned knowledge objects. The details are available in the documentation &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Resolveorphanedsearches"&gt;here&lt;/A&gt;. As an admin, you'd receive a daily alert, have a dashboard to review the objects, and an opportunity to reassign them to a different user. Reviewing the steps above, the "Orphaned Scheduled Searches, Reports, and Alerts" dashboard and UI to manage objects would replace Steps 2, 3, and 4 for most use-cases. Enjoy!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 19:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-does-Splunk-manage-LDAP-or-AD-user-created-objects-if-the/m-p/79419#M2642</guid>
      <dc:creator>ekost</dc:creator>
      <dc:date>2017-08-03T19:49:01Z</dc:date>
    </item>
  </channel>
</rss>

