<?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 LDAP Configuration, Invalid credentials issue. in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/LDAP-Configuration-Invalid-credentials-issue/m-p/36357#M10215</link>
    <description>&lt;P&gt;Hello Splunkers.&lt;BR /&gt;
Im new to splunk and have been tasked with configuring LDAP, I have edited the authentication.conf file as below.&lt;/P&gt;

&lt;P&gt;authType = LDAP&lt;BR /&gt;
authSettings = ldap1&lt;/P&gt;

&lt;P&gt;[ldap1]&lt;BR /&gt;
host = sjcldap.ad.ea.com&lt;BR /&gt;
port = 3268&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
bindDN = emsguest&lt;BR /&gt;
bindDNpassword = ##hashed password##&lt;BR /&gt;
userBaseDN = dc=ad,dc=ea,dc=com&lt;BR /&gt;
userBaseFilter = (objectclass=&lt;EM&gt;)&lt;BR /&gt;
groupBaseDN = dc=ad,dc=ea,dc=com&lt;BR /&gt;
groupBaseFilter = (objectclass=&lt;/EM&gt;)&lt;BR /&gt;
userNameAttribute = sAMAccountName&lt;BR /&gt;
realNameAttribute = displayName&lt;BR /&gt;
groupMappingAttribute = uid&lt;BR /&gt;
groupMemberAttribute = uniqueMember&lt;BR /&gt;
groupNameAttribute = uid&lt;/P&gt;

&lt;P&gt;in splunkd.log file I see the following:&lt;BR /&gt;
08-15-2013 05:12:14.914 -0700 ERROR ScopedLDAPConnection - strategy="ldap1" Error binding to LDAP. reason="Invalid credentials"&lt;BR /&gt;
08-15-2013 05:12:14.914 -0700 INFO  IndexProcessor - adjusting tb licences&lt;BR /&gt;
08-15-2013 05:12:14.914 -0700 ERROR UserManagerPro - LoadLDAPUsersThread: Error loading all LDAP users for strategy="ldap1"&lt;BR /&gt;
08-15-2013 05:12:14.917 -0700 INFO  CMConfig - A splunktcp forwarder port is not configured in inputs.conf&lt;BR /&gt;
08-15-2013 05:12:14.917 -0700 INFO  TcpInputConfig - SSL clause not found or servercert not provided - SSL ports will not be available&lt;/P&gt;

&lt;P&gt;If I execute the following ldapsearch command it works:&lt;BR /&gt;
ldapsearch -x -h sjcldap.ad.ea.com -p 3268 -D "esmguest" -w "esmguest" -b "dc=ad,dc=ea,dc=com" "samaccountname=*"&lt;/P&gt;

&lt;P&gt;So what Am I missing or doing wrong?&lt;/P&gt;

&lt;P&gt;Any thoughts or comments you can provide will be appreciated.&lt;/P&gt;

&lt;P&gt;Best Regards.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2013 19:57:31 GMT</pubDate>
    <dc:creator>fabianbr</dc:creator>
    <dc:date>2013-08-15T19:57:31Z</dc:date>
    <item>
      <title>LDAP Configuration, Invalid credentials issue.</title>
      <link>https://community.splunk.com/t5/Reporting/LDAP-Configuration-Invalid-credentials-issue/m-p/36357#M10215</link>
      <description>&lt;P&gt;Hello Splunkers.&lt;BR /&gt;
Im new to splunk and have been tasked with configuring LDAP, I have edited the authentication.conf file as below.&lt;/P&gt;

&lt;P&gt;authType = LDAP&lt;BR /&gt;
authSettings = ldap1&lt;/P&gt;

&lt;P&gt;[ldap1]&lt;BR /&gt;
host = sjcldap.ad.ea.com&lt;BR /&gt;
port = 3268&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
bindDN = emsguest&lt;BR /&gt;
bindDNpassword = ##hashed password##&lt;BR /&gt;
userBaseDN = dc=ad,dc=ea,dc=com&lt;BR /&gt;
userBaseFilter = (objectclass=&lt;EM&gt;)&lt;BR /&gt;
groupBaseDN = dc=ad,dc=ea,dc=com&lt;BR /&gt;
groupBaseFilter = (objectclass=&lt;/EM&gt;)&lt;BR /&gt;
userNameAttribute = sAMAccountName&lt;BR /&gt;
realNameAttribute = displayName&lt;BR /&gt;
groupMappingAttribute = uid&lt;BR /&gt;
groupMemberAttribute = uniqueMember&lt;BR /&gt;
groupNameAttribute = uid&lt;/P&gt;

&lt;P&gt;in splunkd.log file I see the following:&lt;BR /&gt;
08-15-2013 05:12:14.914 -0700 ERROR ScopedLDAPConnection - strategy="ldap1" Error binding to LDAP. reason="Invalid credentials"&lt;BR /&gt;
08-15-2013 05:12:14.914 -0700 INFO  IndexProcessor - adjusting tb licences&lt;BR /&gt;
08-15-2013 05:12:14.914 -0700 ERROR UserManagerPro - LoadLDAPUsersThread: Error loading all LDAP users for strategy="ldap1"&lt;BR /&gt;
08-15-2013 05:12:14.917 -0700 INFO  CMConfig - A splunktcp forwarder port is not configured in inputs.conf&lt;BR /&gt;
08-15-2013 05:12:14.917 -0700 INFO  TcpInputConfig - SSL clause not found or servercert not provided - SSL ports will not be available&lt;/P&gt;

&lt;P&gt;If I execute the following ldapsearch command it works:&lt;BR /&gt;
ldapsearch -x -h sjcldap.ad.ea.com -p 3268 -D "esmguest" -w "esmguest" -b "dc=ad,dc=ea,dc=com" "samaccountname=*"&lt;/P&gt;

&lt;P&gt;So what Am I missing or doing wrong?&lt;/P&gt;

&lt;P&gt;Any thoughts or comments you can provide will be appreciated.&lt;/P&gt;

&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 19:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/LDAP-Configuration-Invalid-credentials-issue/m-p/36357#M10215</guid>
      <dc:creator>fabianbr</dc:creator>
      <dc:date>2013-08-15T19:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP Configuration, Invalid credentials issue.</title>
      <link>https://community.splunk.com/t5/Reporting/LDAP-Configuration-Invalid-credentials-issue/m-p/36358#M10216</link>
      <description>&lt;P&gt;Hello Team.&lt;/P&gt;

&lt;P&gt;I found out what the issue was, I was giving bad credentials :(.&lt;/P&gt;

&lt;P&gt;Now im getting a new message&lt;BR /&gt;
"Your LDAP strategy 'ldap1' is not returning any groups. Please check your LDAP configuration or consult splunkd.log for LDAP errors."&lt;/P&gt;

&lt;P&gt;Anyway I will open a new thread for that.&lt;/P&gt;

&lt;P&gt;Have a Great Day.&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 17:47:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/LDAP-Configuration-Invalid-credentials-issue/m-p/36358#M10216</guid>
      <dc:creator>fabianbr</dc:creator>
      <dc:date>2013-08-16T17:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP Configuration, Invalid credentials issue.</title>
      <link>https://community.splunk.com/t5/Reporting/LDAP-Configuration-Invalid-credentials-issue/m-p/36359#M10217</link>
      <description>&lt;P&gt;I was getting the following error when loading LDAP configuration from system/local/authentication.conf file:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Error binding to LDAP. reason="Invalid credentials"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The problem was due to me having &lt;STRONG&gt;bindDNpassword&lt;/STRONG&gt; in a form of a hash instead of plain text.  It turns out you need Splunk do the hashing on it own.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:43:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/LDAP-Configuration-Invalid-credentials-issue/m-p/36359#M10217</guid>
      <dc:creator>bbialek</dc:creator>
      <dc:date>2016-02-05T00:43:41Z</dc:date>
    </item>
  </channel>
</rss>

