<?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 authentication troubleshooting information in Security</title>
    <link>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72276#M2374</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to configure an Splunk's authentication by LDAP.&lt;/P&gt;

&lt;P&gt;I have already registered LDAP server and mapped group and role in my Splunk 4.3.2.&lt;/P&gt;

&lt;P&gt;It seems Splunk and LDAP server communicates. However, when I tried to login with a user registered in LDAP, the login failed.&lt;/P&gt;

&lt;P&gt;I would like to troubleshoot this, but there is not much information about the log file to take a look at for the LDAP authentication troubleshooting regarding Splunk/LDAP Login.&lt;/P&gt;

&lt;P&gt;Could anyone point me to the log file or information under SPLUNK_HOME?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jun 2012 13:35:51 GMT</pubDate>
    <dc:creator>melonman</dc:creator>
    <dc:date>2012-06-11T13:35:51Z</dc:date>
    <item>
      <title>LDAP authentication troubleshooting information</title>
      <link>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72276#M2374</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to configure an Splunk's authentication by LDAP.&lt;/P&gt;

&lt;P&gt;I have already registered LDAP server and mapped group and role in my Splunk 4.3.2.&lt;/P&gt;

&lt;P&gt;It seems Splunk and LDAP server communicates. However, when I tried to login with a user registered in LDAP, the login failed.&lt;/P&gt;

&lt;P&gt;I would like to troubleshoot this, but there is not much information about the log file to take a look at for the LDAP authentication troubleshooting regarding Splunk/LDAP Login.&lt;/P&gt;

&lt;P&gt;Could anyone point me to the log file or information under SPLUNK_HOME?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 13:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72276#M2374</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2012-06-11T13:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP authentication troubleshooting information</title>
      <link>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72277#M2375</link>
      <description>&lt;P&gt;hi melonman, &lt;/P&gt;

&lt;P&gt;as always a good starting point is splunkd.log, check for any authentication errors. Remove any custom values you've added for userBaseFilter and groupBaseFilter. Use ldapsearch to manually test that the variables you are specifying will return the expected entries:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ldapsearch  -x –h &amp;lt;ldap_host&amp;gt; –p &amp;lt;ldap_port&amp;gt; –D "bind_dn" -w "bind_passwd" -b "user_basedn"  "userNameAttribute=*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers,&lt;/P&gt;

&lt;P&gt;MuS&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 13:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72277#M2375</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-06-11T13:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP authentication troubleshooting information</title>
      <link>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72278#M2376</link>
      <description>&lt;P&gt;Thanks, MuS!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2012 10:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72278#M2376</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2012-06-18T10:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP authentication troubleshooting information</title>
      <link>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72279#M2377</link>
      <description>&lt;H1&gt;This post will only help Windows/splunk/AD/LDAP people.&lt;/H1&gt;

&lt;P&gt;I  am posting this with the hope it will save someone the pain I just went through.&lt;BR /&gt;
first of all some of the examples work, some do not.&lt;BR /&gt;
if the bind works splunkd will not have and error.  If it does not, splunkd.log will have errors.  bind username as to be domain username for domain that has LDAP/AD connection.&lt;BR /&gt;
use ADEDIT to get LDAP info.&lt;/P&gt;

&lt;P&gt;first thing that is NOT mentioned anywhere that I was able to find in splunk answers&lt;BR /&gt;
the bind username has to be added to the builtin Windows Authorization Access Group&lt;BR /&gt;
This has to be done to allow splunk to validate user login.&lt;BR /&gt;
So even after I  got the conf file correct and could see groups, etc.  I could not get the login to work...talk about days of screaming frustration.&lt;/P&gt;

&lt;P&gt;Second big discovery, is if one of your domain admins loves to organize, splunk (or LDAP) does not deal will with nested OUs.  So if users are deep within nested OUs, you will have to do as I did.  Give path (i.e. distinguisedName) for every "group/OU".&lt;BR /&gt;
hope this helps someone even a little.&lt;/P&gt;

&lt;P&gt;at the bottom is a working authentication.conf file...with what should be obvious removal of company, domain information.&lt;/P&gt;

&lt;H4&gt;Basic LDAP configuration&lt;/H4&gt;

&lt;P&gt;[domaincontroller]&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
anonymous_referrals = 1&lt;BR /&gt;
bindDN = CN=splunkbind, CN=Users, DC=companynamesystems, DC=com&lt;BR /&gt;
bindDNpassword = $1$mPYcaZ61L2FkKdex83/gjH0mnz9uwVDC40B4mSM=&lt;BR /&gt;
charset = utf8&lt;BR /&gt;
userBaseFilter = (objectclass=*)&lt;BR /&gt;
groupBaseDN = CN=Users, DC=companynamesystems,DC=com&lt;BR /&gt;
groupMappingAttribute = dn&lt;BR /&gt;
groupMemberAttribute = member&lt;BR /&gt;
groupNameAttribute = cn&lt;BR /&gt;
host = domaincontroller.companynamesystems.com&lt;BR /&gt;
nestedGroups = 1&lt;BR /&gt;
comwork_timeout = 20&lt;BR /&gt;
port = 389&lt;BR /&gt;
realNameAttribute = cn&lt;BR /&gt;
sizelimit = 1000&lt;BR /&gt;
timelimit = 15&lt;BR /&gt;
userBaseDN = CN=Users, DC=companynamesystems, DC=com&lt;BR /&gt;
userNameAttribute = samaccountname&lt;/P&gt;

&lt;P&gt;[authentication]&lt;BR /&gt;
authSettings = domaincontroller,domainname&lt;BR /&gt;
authType = LDAP&lt;/P&gt;

&lt;P&gt;[domainname]&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
anonymous_referrals = 0&lt;BR /&gt;
bindDN = splunkbind&lt;BR /&gt;
bindDNpassword = $1$mPYcaZ61L2FkKdex83/gjH0mnz9uwVDC40B4mSM=&lt;BR /&gt;
charset = utf8&lt;BR /&gt;
groupBaseDN = CN=splunk,DC=companyname,DC=com;&lt;BR /&gt;
groupMappingAttribute = dn&lt;BR /&gt;
groupMemberAttribute = member&lt;BR /&gt;
groupNameAttribute = cn&lt;BR /&gt;
host = domainnamedc02.companyname.com&lt;BR /&gt;
nestedGroups = 1&lt;BR /&gt;
comwork_timeout = 20&lt;BR /&gt;
port = 389&lt;BR /&gt;
realNameAttribute = cn&lt;BR /&gt;
sizelimit = 1000&lt;BR /&gt;
timelimit = 15&lt;BR /&gt;
userBaseDN = OU=Sustained Engineering,OU=Corp,DC=companyname,DC=com;OU=Analytics,OU=Corp,DC=companyname,DC=com;OU=Customer Service,OU=Corp,DC=companyname,DC=com;OU=IT Staff,OU=Hyderabad,OU=Corp,DC=companyname,DC=com;OU=Management,OU=Corp,DC=companyname,DC=com;OU=Product Development,OU=Corp,DC=companyname,DC=com;OU=GlobalLogic,OU=Corp,DC=companyname,DC=com;OU=QA,OU=Corp,DC=companyname,DC=com;&lt;BR /&gt;
userNameAttribute = samaccountname&lt;/P&gt;

&lt;P&gt;[roleMap_domainname]&lt;BR /&gt;
admin = SplunkAdmin&lt;BR /&gt;
user = SplunkUsers&lt;/P&gt;

&lt;P&gt;[roleMap_domaincontroller]&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72279#M2377</guid>
      <dc:creator>kfleming</dc:creator>
      <dc:date>2020-09-28T17:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP authentication troubleshooting information</title>
      <link>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72280#M2378</link>
      <description>&lt;P&gt;I am so deeply grateful for this post - I think you just solved my problem.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 20:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/LDAP-authentication-troubleshooting-information/m-p/72280#M2378</guid>
      <dc:creator>robgarner</dc:creator>
      <dc:date>2017-03-09T20:56:30Z</dc:date>
    </item>
  </channel>
</rss>

