<?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 Splunk ldaptestconnection error in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-ldaptestconnection-error/m-p/500408#M61612</link>
    <description>&lt;P&gt;i am trying to connect to my 2nd LDAP instance using the SA-LDAPSearch app (Splunk Supporting Add-on for Active Directory   3.0.1) and am getting the below error &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;External search command 'ldaptestconnection' returned error code 1. First 1000 (of 1921) bytes of script output: "error_message= # host: &amp;lt;hostname&amp;gt;: Could not access the directory service at ldaps://&amp;lt;hostname&amp;gt;:&amp;lt;ldaps_port&amp;gt;: ('unable to open socket', [(datetime.datetime(2020, 5, 18, 10, 57, 16, 524688), , LDAPSocketOpenError('socket connection error while opening: [Errno 110] Connection timed out',), ('&amp;lt;ip_address&amp;gt;', &amp;lt;ldaps_port&amp;gt;)), (datetime.datetime(2020, 5, 18, 10, 57, 31, 532624), , LDAPSocketOpenError('socket ssl wrapping error: [Errno 104] Connection reset by peer',), ('&amp;lt;ip_address&amp;gt;', &amp;lt;ldaps_port&amp;gt;)), (datetime.datetime(2020, 5, 18, 10, 59, 38, 860630), , LDAPSocketOpenError('socket connection error while opening: [Errno 110] Connection timed out',), ('&amp;lt;ip_address&amp;gt;', &amp;lt;ldaps_port&amp;gt;)), (datetime.datetime(2020, 5, 18, 10, 59, 53, 851213), , LDAPSocketOpenError('socket ssl wrapping error: [Errno 104] Connection reset by peer',), ('".
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I do have a working ldap connection on a different domain that works fine and does not throw any error.&lt;BR /&gt;
Is there any configs that i am missing or is it an issue with the connectivity from my splunk server to the ldap server?&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 10:16:48 GMT</pubDate>
    <dc:creator>soumyasaha25</dc:creator>
    <dc:date>2020-05-18T10:16:48Z</dc:date>
    <item>
      <title>Splunk ldaptestconnection error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-ldaptestconnection-error/m-p/500408#M61612</link>
      <description>&lt;P&gt;i am trying to connect to my 2nd LDAP instance using the SA-LDAPSearch app (Splunk Supporting Add-on for Active Directory   3.0.1) and am getting the below error &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;External search command 'ldaptestconnection' returned error code 1. First 1000 (of 1921) bytes of script output: "error_message= # host: &amp;lt;hostname&amp;gt;: Could not access the directory service at ldaps://&amp;lt;hostname&amp;gt;:&amp;lt;ldaps_port&amp;gt;: ('unable to open socket', [(datetime.datetime(2020, 5, 18, 10, 57, 16, 524688), , LDAPSocketOpenError('socket connection error while opening: [Errno 110] Connection timed out',), ('&amp;lt;ip_address&amp;gt;', &amp;lt;ldaps_port&amp;gt;)), (datetime.datetime(2020, 5, 18, 10, 57, 31, 532624), , LDAPSocketOpenError('socket ssl wrapping error: [Errno 104] Connection reset by peer',), ('&amp;lt;ip_address&amp;gt;', &amp;lt;ldaps_port&amp;gt;)), (datetime.datetime(2020, 5, 18, 10, 59, 38, 860630), , LDAPSocketOpenError('socket connection error while opening: [Errno 110] Connection timed out',), ('&amp;lt;ip_address&amp;gt;', &amp;lt;ldaps_port&amp;gt;)), (datetime.datetime(2020, 5, 18, 10, 59, 53, 851213), , LDAPSocketOpenError('socket ssl wrapping error: [Errno 104] Connection reset by peer',), ('".
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I do have a working ldap connection on a different domain that works fine and does not throw any error.&lt;BR /&gt;
Is there any configs that i am missing or is it an issue with the connectivity from my splunk server to the ldap server?&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 10:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-ldaptestconnection-error/m-p/500408#M61612</guid>
      <dc:creator>soumyasaha25</dc:creator>
      <dc:date>2020-05-18T10:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ldaptestconnection error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-ldaptestconnection-error/m-p/500409#M61613</link>
      <description>&lt;P&gt;Hello @soumyasaha25 &lt;/P&gt;

&lt;P&gt;there are two related errors which are repeated after the retry timeout:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LDAPSocketOpenError('socket connection error while opening: [Errno 110] Connection timed out',)
LDAPSocketOpenError('socket ssl wrapping error: [Errno 104] Connection reset by peer',)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try this to find out if the reset is send on the TCP or on the SSL (TLS version, ciphers, certificate, cert path/CA, etc.) level:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;openssl s_client -connect ldap_server_hostname:ldaps_port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;alternatively run ldapsearch with &lt;CODE&gt;-v&lt;/CODE&gt; flag&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 10:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-ldaptestconnection-error/m-p/500409#M61613</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-18T10:51:28Z</dc:date>
    </item>
  </channel>
</rss>

