<?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 Re: how to drop &amp;quot;ranger.usersync.ldap.ldapbindpassword&amp;quot; using config.sh script in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225569#M75117</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3576/rguruvannagari.html" nodeid="3576"&gt;@rguruvannagari&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 13:54:53 GMT</pubDate>
    <dc:creator>sagarshimpi</dc:creator>
    <dc:date>2018-02-28T13:54:53Z</dc:date>
    <item>
      <title>how to drop "ranger.usersync.ldap.ldapbindpassword" using config.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225568#M75116</link>
      <description>&lt;P&gt;I am trying to automate ranger ldap integration. I am stuck at on how to drop "ranger.usersync.ldap.ldapbindpassword"  value using ambari "config.sh" script ?&lt;/P&gt;&lt;P&gt;Can you please guide on how to achieve this ?&lt;/P&gt;&lt;P&gt;I tried to check in working cluster which has ranger ldap integrated and the output is as below -&lt;/P&gt;&lt;PRE&gt;# ./configs.sh -u admin -p admin -port 8080  get `hostname` hdptest ranger-ugsync-site |grep ldapbind
"ranger.usersync.ldap.ldapbindpassword" : "SECRET:ranger-ugsync-site:11:ranger.usersync.ldap.ldapbindpassword",
&lt;/PRE&gt;&lt;P&gt;Not sure how the password is stored or taken in the value.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 13:54:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225568#M75116</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2018-02-28T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to drop "ranger.usersync.ldap.ldapbindpassword" using config.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225569#M75117</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3576/rguruvannagari.html" nodeid="3576"&gt;@rguruvannagari&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 13:54:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225569#M75117</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2018-02-28T13:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to drop "ranger.usersync.ldap.ldapbindpassword" using config.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225570#M75118</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not sure if i understood the query correctly... But i tried this &lt;/P&gt;&lt;P&gt;1. Get the "ranger-ugsync-site" config as following using "action=&lt;STRONG&gt;get&lt;/STRONG&gt;"&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=get --host=localhost --cluster=plain_ambari --config-type=ranger-ugsync-site --file=/tmp/ranger-ugsync-site_payload.json&lt;/PRE&gt;&lt;P&gt;2. Edited the file "/tmp/ranger-ugsync-site_payload.json"  and changed the value of property "ranger.usersync.ldap.ldapbindpassword" in clear text like "ABCD..blah..blah"&lt;/P&gt;&lt;P&gt;3. set this file back using the following command.  (action=&lt;STRONG&gt;set&lt;/STRONG&gt;)&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=localhost --cluster=plain_ambari --config-type=ranger-ugsync-site --file=/tmp/ranger-ugsync-site_payload.json&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Done.&lt;/P&gt;&lt;P&gt;In order to verify the password was set correctly or not i then tried to get the value again:&lt;/P&gt;&lt;PRE&gt;#  /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=get --host=localhost --cluster=plain_ambari --config-type=ranger-ugsync-site | grep 'ldapbindpassword'

  "ranger.usersync.ldap.ldapbindpassword": "SECRET:ranger-ugsync-site:3:ranger.usersync.ldap.ldapbindpassword",&lt;/PRE&gt;&lt;P&gt;. &lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 14:23:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225570#M75118</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-02-28T14:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to drop "ranger.usersync.ldap.ldapbindpassword" using config.sh script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225571#M75119</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; It worked. thanks you alot for quick help.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 08:30:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-drop-quot-ranger-usersync-ldap-ldapbindpassword-quot/m-p/225571#M75119</guid>
      <dc:creator>sagarshimpi</dc:creator>
      <dc:date>2018-03-01T08:30:25Z</dc:date>
    </item>
  </channel>
</rss>

