<?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: TA-LDAP app &amp;quot;ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf&amp;quot; in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373394#M45249</link>
    <description>&lt;P&gt;Ok, also to verify your appname/default/ldap.conf looks like this and also go ahead and remove scope on your appname/local/ldap.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Author: MuS
#
# passwords in here are base64, you will not use clear text passwords!
#

[bund]
server = x500.bund.de
port = 389
binddn = 
basedn = cn=Liegenschaften,o=Bund,c=DE
password = 0
ldap_filter = (objectclass=*)
usessl = 0

[default]
server = ldap.forumsys.com
port = 389
usessl = 0
binddn = cn=read-only-admin,dc=example,dc=com
basedn = dc=example,dc=com
password = cGFzc3dvcmQ=
ldap_filter = (objectclass=*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm working on trying to recreate the issue on my side with no success.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 14:34:01 GMT</pubDate>
    <dc:creator>Grumpalot</dc:creator>
    <dc:date>2017-07-13T14:34:01Z</dc:date>
    <item>
      <title>TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373386#M45241</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Am trying to connect one of ldap server using TA-LDAP app but for some reason am getting this error while running ldap searches  &lt;/P&gt;

&lt;P&gt;|ldap basedn="dc=stg,dc=org" ldap_filter="(ou=SelfRegUser)"&lt;BR /&gt;
and &lt;BR /&gt;
|ldap basedn="ou=SelfRegUser,dc=stg,dc=org" ldap_filter="(ou=SelfRegUser)"&lt;/P&gt;

&lt;P&gt;Error while executing search command:&lt;BR /&gt;
"External search command 'ldap' returned error code 1."&lt;/P&gt;

&lt;P&gt;And also tried enabling debug logs and got below error, but i am not sure what this error means&lt;/P&gt;

&lt;P&gt;Error after enabled debug log:&lt;BR /&gt;
"ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"&lt;/P&gt;

&lt;P&gt;ldap.conf:&lt;BR /&gt;
[STGLDAP]&lt;BR /&gt;
server = xx.xx.xx.xx&lt;BR /&gt;
port = xxxx&lt;BR /&gt;
usessl = 0&lt;BR /&gt;
binddn = ou=stgldap,dc=stg,dc=org&lt;BR /&gt;
basedn = dc=stg,dc=org&lt;BR /&gt;
password = UGFzc3dvcmQxMjM=&lt;BR /&gt;
ldap_filter = (ou=SelfRegUser)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373386#M45241</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2020-09-29T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373387#M45242</link>
      <description>&lt;P&gt;@kpavan, did you ever find a resolution to this?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373387#M45242</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-11T16:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373388#M45243</link>
      <description>&lt;P&gt;Nope, still hoping someone will reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 09:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373388#M45243</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2017-07-12T09:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373389#M45244</link>
      <description>&lt;P&gt;Ok,  just to verify the current setup the ldap.conf in /apps/TA-LDAP/Defualt/ldap.conf looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Author: MuS
#
# passwords in here are base64, you will not use clear text passwords!
#

[bund]
server = x500.bund.de
port = 389
binddn = 
basedn = cn=Liegenschaften,o=Bund,c=DE
password = 0
ldap_filter = (objectclass=*)
usessl = 0

[default]
server = ldap.forumsys.com
port = 389
usessl = 0
binddn = cn=read-only-admin,dc=example,dc=com
basedn = dc=example,dc=com
password = cGFzc3dvcmQ=
ldap_filter = (objectclass=*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and your new ldap.conf file is located in  /apps/TA-LDAP/local/ldap.conf and it looks like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[STGLDAP]
server = xx.xx.xx.xx
port = xxxx
usessl = 0
binddn = ou=stgldap,dc=stg,dc=org
basedn = dc=stg,dc=org
password = UGFzc3dvcmQxMjM=
ldap_filter = (ou=SelfRegUser)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If your current setup does not look like this please give it a try like the above setup and restart splunk then let me know what happens.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 10:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373389#M45244</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-12T10:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373390#M45245</link>
      <description>&lt;P&gt;Yes, currently I have same configuration the ldap.conf in /apps/TA-LDAP/local/&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373390#M45245</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2017-07-12T13:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373391#M45246</link>
      <description>&lt;P&gt;Ok taking a look at the code from the python script it is looking for the following.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;try: # lets do it
    if myDebug == "yes": logger.info( "read the default options from ldap.conf..." ) # logger
    if myDebug == "yes": logger.info( "reading server from ldap.conf..." ) # logger
    server = parser.get(section_name, 'server')

    # always check username and password in ldap.conf, never provided by user!
    if myDebug == "yes": logger.info( "reading user/pwd from ldap.conf..." ) # logger
    password = parser.get(section_name, 'password')
    binddn = parser.get(section_name, 'binddn')

    # check for user provided basedn options or use [default] stanza
    if myDebug == "yes": logger.info( "reading basedn from ldap.conf..." ) # logger
    if basedn == "basedn":
        basedn = parser.get(section_name, 'basedn')
    else:
        basedn = basedn

    # check for user provided ldap_filter options or use [default] stanza
    if myDebug == "yes": logger.info( "reading ldap_filter from ldap.conf..." ) # logger
    if ldap_filter == "0":
        ldap_filter = parser.get(section_name, 'ldap_filter')
    else:
        ldap_filter = ldap_filter

    # check for user provided scope options or use [default] stanza
    if myDebug == "yes": logger.info( "reading base from ldap.conf..." ) # logger
    if scope == "base":
        scope = ldap.SCOPE_BASE
    elif scope == "one":
        scope = ldap.SCOPE_ONELEVEL
    else:
        scope = ldap.SCOPE_SUBTREE

    # check for user provided port options or use [default] stanza
    if myDebug == "yes": logger.info( "reading port from ldap.conf..." ) # logger
    if port == "389":
        port = parser.get(section_name, 'port')
    else:
        port = port

    # check [default] stanza if we need ssl
    if myDebug == "yes": logger.info( "reading usessl from ldap.conf..." ) # logger
    usessl = parser.get(section_name, 'usessl')
    if usessl == "1":
        conn_string = "ldaps://%s:%s" % ( server, port )
    else:
        conn_string = "ldap://%s:%s" % ( server, port )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It looks like maybe the scope input is missing. Try adding a scope field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [STGLDAP]
 server = xx.xx.xx.xx
 port = xxxx
 usessl = 0
 scope = yourscope
 binddn = ou=stgldap,dc=stg,dc=org
 basedn = dc=stg,dc=org
 password = UGFzc3dvcmQxMjM=
 ldap_filter = (ou=SelfRegUser)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373391#M45246</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-12T14:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373392#M45247</link>
      <description>&lt;P&gt;Hello @kpavan any luck?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 11:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373392#M45247</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-13T11:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373393#M45248</link>
      <description>&lt;P&gt;I have added scope in ldap.conf file, after restarting splunk am getting error as below not sure why it showing as invalid stanza.&lt;/P&gt;

&lt;P&gt;Invalid key in stanza [STGLDAP] in /opt/splunk/etc/apps/TA-LDAP/local/ldap.conf, line 37: scope  (value:  "sub").&lt;BR /&gt;
Invalid key in stanza [STGLDAP] in /opt/splunk/etc/apps/TA-LDAP/local/ldap.conf, line 38: usessl  (value:  0).&lt;BR /&gt;
Invalid key in stanza [STGLDAP] in /opt/splunk/etc/apps/TA-LDAP/local/ldap.conf, line 42: ldap_filter  (value:  "ou=SelfRegUser").&lt;/P&gt;

&lt;P&gt;And still  getting same error like "ERROR myldap:211 - ERROR: unable to get default options from ldap.conf"&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
Pavan&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373393#M45248</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2017-07-13T13:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373394#M45249</link>
      <description>&lt;P&gt;Ok, also to verify your appname/default/ldap.conf looks like this and also go ahead and remove scope on your appname/local/ldap.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Author: MuS
#
# passwords in here are base64, you will not use clear text passwords!
#

[bund]
server = x500.bund.de
port = 389
binddn = 
basedn = cn=Liegenschaften,o=Bund,c=DE
password = 0
ldap_filter = (objectclass=*)
usessl = 0

[default]
server = ldap.forumsys.com
port = 389
usessl = 0
binddn = cn=read-only-admin,dc=example,dc=com
basedn = dc=example,dc=com
password = cGFzc3dvcmQ=
ldap_filter = (objectclass=*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm working on trying to recreate the issue on my side with no success.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373394#M45249</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-13T14:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373395#M45250</link>
      <description>&lt;P&gt;@kpavan any luck?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:12:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373395#M45250</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-19T12:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373396#M45251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Yes, I have same config in default path and also removed scope in local/ldap.conf.&lt;/P&gt;

&lt;P&gt;Not sure why default config says as invalid:&lt;/P&gt;

&lt;P&gt;Invalid key in stanza [bund] in /opt/splunk/etc/apps/TA-LDAP/default/ldap.conf, line 12: ldap_filter  (value:  (objectclass=&lt;EM&gt;)).&lt;BR /&gt;
                Invalid key in stanza [bund] in /opt/splunk/etc/apps/TA-LDAP/default/ldap.conf, line 13: usessl  (value:  0).&lt;BR /&gt;
                Invalid key in stanza [default] in /opt/splunk/etc/apps/TA-LDAP/default/ldap.conf, line 18: usessl  (value:  0).&lt;BR /&gt;
                Invalid key in stanza [default] in /opt/splunk/etc/apps/TA-LDAP/default/ldap.conf, line 22: ldap_filter  (value:  (objectclass=&lt;/EM&gt;)).&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
Pavan&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373396#M45251</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2020-09-29T14:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373397#M45252</link>
      <description>&lt;P&gt;sorry typo mistake ldap_filter (value: (objectclass=*)).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373397#M45252</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2017-07-19T13:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373398#M45253</link>
      <description>&lt;P&gt;Ok go ahead and take out the usessl field from both default/ldap.conf and local/ldap.conf&lt;BR /&gt;
and try the following for ldap_filter&lt;/P&gt;

&lt;P&gt;ldap_filter = "(objectclass=*)"&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373398#M45253</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-19T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: TA-LDAP app "ERROR   myldap:211 - ERROR: unable to get default options from ldap.conf"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373399#M45254</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;Sorry I missed this post, because the notification for the tag did not work for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Let me know should you still need help with this.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 20:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-LDAP-app-quot-ERROR-myldap-211-ERROR-unable-to-get-default/m-p/373399#M45254</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-08-29T20:14:15Z</dc:date>
    </item>
  </channel>
</rss>

