<?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: Issues while using admin/password endpoint in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42463#M508</link>
    <description>&lt;P&gt;password is 123.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2013 19:16:00 GMT</pubDate>
    <dc:creator>Kirangiri123</dc:creator>
    <dc:date>2013-02-25T19:16:00Z</dc:date>
    <item>
      <title>Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42457#M502</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm trying to use admin/password endpoint to store credentials securely (using sample &lt;A href="http://blogs.splunk.com/2011/03/15/storing-encrypted-credentials/" target="_blank"&gt;http://blogs.splunk.com/2011/03/15/storing-encrypted-credentials/&lt;/A&gt;). but splunkd is throwing an exception as shown below.&lt;/P&gt;

&lt;P&gt;” Exception: Could not get TA-Sample credentials from splunk. Error: [HTTP 500] Splunkd internal error; [{'type': 'ERROR', 'text': "In handler 'passwords': Cannot base64 decode encrypted password", 'code': None}]&lt;/P&gt;

&lt;P&gt;Any inputs on this will be really helpful.  &lt;/P&gt;

&lt;P&gt;Below is the python code and app.conf&lt;BR /&gt;
App.conf&lt;/P&gt;

&lt;P&gt;[ui]&lt;BR /&gt;
is_visible = 0&lt;BR /&gt;
label = TA-accuvant&lt;/P&gt;

&lt;P&gt;[launcher]&lt;/P&gt;

&lt;P&gt;[package]&lt;BR /&gt;
check_for_updates = 1&lt;/P&gt;

&lt;P&gt;[install]&lt;BR /&gt;
is_configured = 1&lt;/P&gt;

&lt;P&gt;[credential::user2:]&lt;BR /&gt;
password = $1$XJHN09pBlRtp&lt;/P&gt;

&lt;P&gt;Handler Python function&lt;/P&gt;

&lt;P&gt;def getCredentials(session):&lt;/P&gt;

&lt;P&gt;myapp = ‘TA-Accuvant’&lt;BR /&gt;
try:&lt;/P&gt;

&lt;P&gt;entities = entity.getEntities(['admin', 'passwords'], namespace=myapp,&lt;BR /&gt;
owner=’nobody’, sessionKey=session)&lt;BR /&gt;
except Exception, e:&lt;BR /&gt;
raise Exception(“Could not get %s credentials from splunk. Error: %s”&lt;BR /&gt;
% (myapp, str(e)))&lt;/P&gt;

&lt;P&gt;for i, c in entities.items():&lt;BR /&gt;
return c['username'], c['password']&lt;/P&gt;

&lt;P&gt;raise Exception(“No credentials have been found”)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42457#M502</guid>
      <dc:creator>Kirangiri123</dc:creator>
      <dc:date>2020-09-28T13:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42458#M503</link>
      <description>&lt;P&gt;Kiran, how was the entry in apps.conf [credential::user2:] created? Basically, Splunk is having troubles base64 decoding the encrypted password "XJHN09pBlRtp"&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2013 17:37:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42458#M503</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2013-02-25T17:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42459#M504</link>
      <description>&lt;P&gt;I'm using entity=_new in setup.xml which stores password in app.conf&lt;/P&gt;

&lt;P&gt;Here is the sample.xml snippet &lt;/P&gt;

&lt;P&gt;&lt;BLOCK title="Database User Info" endpoint="admin/passwords" entity="_new"&gt;&lt;BR /&gt;
    &lt;INPUT field="name" /&gt;&lt;BR /&gt;
      &lt;LABEL&gt;Username&lt;/LABEL&gt;&lt;BR /&gt;
      &lt;TYPE&gt;text&lt;/TYPE&gt;&lt;BR /&gt;
    &lt;BR /&gt;
    &lt;INPUT field="password" /&gt;&lt;BR /&gt;
      &lt;LABEL&gt;Password&lt;/LABEL&gt;&lt;BR /&gt;
      &lt;TYPE&gt;password&lt;/TYPE&gt;&lt;BR /&gt;
    &lt;BR /&gt;
  &lt;/BLOCK&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2013 17:39:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42459#M504</guid>
      <dc:creator>Kirangiri123</dc:creator>
      <dc:date>2013-02-25T17:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42460#M505</link>
      <description>&lt;P&gt;What version of Splunk are you using, so I can try to repro this?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2013 17:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42460#M505</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2013-02-25T17:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42461#M506</link>
      <description>&lt;P&gt;Splunk 5.0.1 build 143156.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2013 17:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42461#M506</guid>
      <dc:creator>Kirangiri123</dc:creator>
      <dc:date>2013-02-25T17:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42462#M507</link>
      <description>&lt;P&gt;Hmm, I'm not able to reproduce the problem in that build. Does this happen for all passwords or just this one? Do you mind sharing the clear password string - I hope it's not real &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2013 18:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42462#M507</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2013-02-25T18:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42463#M508</link>
      <description>&lt;P&gt;password is 123.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2013 19:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42463#M508</guid>
      <dc:creator>Kirangiri123</dc:creator>
      <dc:date>2013-02-25T19:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42464#M509</link>
      <description>&lt;P&gt;hmm still can't repro. Does the same thing happen for other password values too?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2013 20:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42464#M509</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2013-02-25T20:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42465#M510</link>
      <description>&lt;P&gt;Ledion,&lt;/P&gt;

&lt;P&gt;I made some changes and restarted splunk. It started working magically. Still not sure what fixed my code.&lt;/P&gt;

&lt;P&gt;Now. I am trying to load splunk libraries using system python( I have some custom python packages like pymssql ).&lt;/P&gt;

&lt;P&gt;I researched in splunkbase and the best approach suggested by one the developers was Can I add python modules to the Splunk environment? on Splunk Answers&lt;/P&gt;

&lt;P&gt;But, this approach is again throwing exception as below. Have you come across this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42465#M510</guid>
      <dc:creator>Kirangiri123</dc:creator>
      <dc:date>2013-02-26T15:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42466#M511</link>
      <description>&lt;P&gt;/usr/bin/python: /opt/splunk/lib/libz.so.1: no version information available (required by /usr/bin/python) /usr/bin/python: /opt/splunk/lib/libcrypto.so.0.9.8: no version information available (required by /usr/bin/python) /usr/bin/python: /opt/splunk/lib/libssl.so.0.9.8: no version information available (required by /usr/bin/python) /opt/splunk/lib/python2.7/site-packages Traceback (most recent call last):, line 7, in &lt;MODULE&gt; import lxml.etree as et ImportError: /opt/splunk/lib/python2.7/site-packages/lxml/etree.so: undefined symbol: PyUnicodeUCS2_AsEncodedString&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42466#M511</guid>
      <dc:creator>Kirangiri123</dc:creator>
      <dc:date>2013-02-26T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issues while using admin/password endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42467#M512</link>
      <description>&lt;P&gt;Kiran, I'd suggest you ask another question so one of our internal python experts would be able to point you to the right direction. I can make one recommendation that has worked for me in the past, in MySQL Connector app, try to find a pure python driver for MSSQL if at all possible - then you'd be able to use it just by placing it in your app's bin dir (see MySQLConnector for an example of how/where to place the driver).&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 19:00:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Issues-while-using-admin-password-endpoint/m-p/42467#M512</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2013-02-26T19:00:14Z</dc:date>
    </item>
  </channel>
</rss>

