<?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>question How do I remove LDAP accounts from Ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96618#M10153</link>
    <description>&lt;P&gt;I loaded LDAP accounts into Ambari and now need to remove them and re-sync. How do I remove the accounts?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 02:06:40 GMT</pubDate>
    <dc:creator>SQLShaw</dc:creator>
    <dc:date>2015-11-06T02:06:40Z</dc:date>
    <item>
      <title>How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96618#M10153</link>
      <description>&lt;P&gt;I loaded LDAP accounts into Ambari and now need to remove them and re-sync. How do I remove the accounts?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:06:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96618#M10153</guid>
      <dc:creator>SQLShaw</dc:creator>
      <dc:date>2015-11-06T02:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96619#M10154</link>
      <description>&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/186/sshaw.html"&gt;Scott Shaw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I believe you need to clean it up from ambari database. &lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;[root@nsfed01 ~]# psql dbname username&lt;/P&gt;&lt;P&gt;Password for user ambari: &lt;/P&gt;&lt;P&gt;psql (8.4.20)&lt;/P&gt;&lt;P&gt;Type "help" for help.&lt;/P&gt;&lt;P&gt;ambari2112=&amp;gt; \dt&lt;/P&gt;&lt;P&gt;ambari2112=&amp;gt; select * from users where ldap_user=1;&lt;/P&gt;&lt;P&gt; user_id | principal_id | ldap_user | user_name | create_time | user_password | active | active_widget_layouts &lt;/P&gt;&lt;P&gt;---------+--------------+-----------+-----------+-------------+---------------+--------+-----------------------&lt;/P&gt;&lt;P&gt;(0 rows)&lt;/P&gt;&lt;P&gt;delete from users where ldap_user=1;&lt;/P&gt;&lt;P&gt;I aambari2112=&amp;gt; select * from users;
&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:21:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96619#M10154</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-06T02:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96620#M10155</link>
      <description>&lt;P&gt;Scott, you can use the API to remove them:&lt;/P&gt;&lt;P&gt;curl --insecure -u admin:$PASSWORD -H 'X-Requested-By: ambari' -X DELETE &lt;A href="http://$AMBARI_HOST:8080/api/v1/users/paul" target="_blank"&gt;http://$AMBARI_HOST:8080/api/v1/users/paul&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:42:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96620#M10155</guid>
      <dc:creator>pcodding</dc:creator>
      <dc:date>2015-11-06T02:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96621#M10156</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/32/paul.html" nodeid="32"&gt;@Paul Codding&lt;/A&gt; This is helpful. Thanks! I believe , delete statement is not good idea to run..Comments? &lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:43:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96621#M10156</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-06T02:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96622#M10157</link>
      <description>&lt;P&gt;We went down the path of deleting directly from Oracle but ran into a bunch of relational constraints.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:50:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96622#M10157</guid>
      <dc:creator>SQLShaw</dc:creator>
      <dc:date>2015-11-06T02:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96623#M10158</link>
      <description>&lt;P&gt;Could you share delete statements for oracle?&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/186/sshaw.html" nodeid="186"&gt;@Scott Shaw&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:53:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96623#M10158</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-06T02:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96624#M10159</link>
      <description>&lt;P&gt;We ended up going with Paul's solution and didn't try to delete from Oracle. Thanks for all your input and help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 04:13:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96624#M10159</guid>
      <dc:creator>SQLShaw</dc:creator>
      <dc:date>2015-11-06T04:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96625#M10160</link>
      <description>&lt;P&gt;I've created an internal JIRA to support bulk deletion from the CLI&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 05:53:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96625#M10160</guid>
      <dc:creator>pcodding</dc:creator>
      <dc:date>2015-11-06T05:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96626#M10161</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/32/paul.html" nodeid="32"&gt;@Paul Codding&lt;/A&gt;  Is it ok to follow this approach? &lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:37:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96626#M10161</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-25T10:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96627#M10162</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/32/paul.html" nodeid="32"&gt;@Paul Codding&lt;/A&gt; Do you have jira number? Is it internal?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:37:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/96627#M10162</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-25T10:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/270115#M10163</link>
      <description>&lt;P&gt;If like me, you made a mistake for instance loading all your LDAP users and groups with "ambari-server sync-ldap --all" and you realize that you in fact only wanted some groups/users, you can re-run the "ambari-server setup-ldap" wizard pointing to the DN of only one of your users to keep as the search base. Then run "ambari-server sync-ldap --existing" to remove all existing LDAP users and groups except the single one to keep. Then reset the correct search base and add the subset of groups/users you want using "ambari-server sync-ldap --users users.txt --groups groups.txt". This trick saved my life by automatically and easily removing roughly 15000 LDAP users and 1000 LDAP groups &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 10:36:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/270115#M10163</guid>
      <dc:creator>mrossign</dc:creator>
      <dc:date>2019-09-10T10:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove LDAP accounts from Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/292292#M10164</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This wokarround didn't work for me.&lt;/P&gt;&lt;P&gt;Configured the LDAP setup so that the BaseDN matches only 1 entry.&lt;/P&gt;&lt;P&gt;calling "&lt;SPAN&gt;ambari-server sync-ldap --existing" didn't remove all existing LDAP Users and groups rather it deleted 2 only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;may be i missed something, but after running the setup do we need to restart ambari-server?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What should be the expected behaviour when runing the "ambari-server sync-ldap --all" and the BaseDN pointing to a single AD entry?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The doc states the following for option '--exisiting' : "Users will be removed from Ambari if they no&lt;BR /&gt;longer exist in LDAP, and group membership in Ambari will be updated to match LDAP". Since AD users still exist that would have no effect to remove the users even if baseDN points to single entry.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What we are looking for (HDP2.6.5) is to remove all LDAP synced users other than these specified in --users users.txt and --groups group.txt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It looks like there is no such tool and we have to resort to manually use ambari APIs somehow.&lt;BR /&gt;One thing i'm not sure is how are the lowercased alias being handled, since during the first sync we had the default value 'true' to force lower case, and now changed it to 'false'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;looking forward your insights&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 11:20:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-remove-LDAP-accounts-from-Ambari/m-p/292292#M10164</guid>
      <dc:creator>pmadiot</dc:creator>
      <dc:date>2020-03-23T11:20:38Z</dc:date>
    </item>
  </channel>
</rss>

