<?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: Splunk LDAP authentication with Active Directory in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87084#M2892</link>
    <description>&lt;P&gt;I believe when trying to authenticate to AD, SSL is required. Try modifying these settings.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;SSLEnabled = 1&lt;BR /&gt;
port = 636&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can also try using ldapsearch: &lt;CODE&gt;ldapsearch -x -H ldaps://ldap_host -D "bind_dn" -W -b "user_basedn" "(samaccountname=*)" "cn"&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2013 21:36:54 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2013-01-14T21:36:54Z</dc:date>
    <item>
      <title>Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87081#M2889</link>
      <description>&lt;P&gt;I'm unable to authenticate Splunk LDAP with the Active directory. I'm able to save my LDAP configuration and pull the users for a group. I have matched the role with the user group, but I'm unable to login to splunk using my AD credentials. &lt;/P&gt;

&lt;P&gt;My authentication file.&lt;/P&gt;

&lt;P&gt;[cacheTiming]&lt;BR /&gt;
userLoginTTL = 1&lt;BR /&gt;
getUserInfoTTL = 1&lt;BR /&gt;
getUsersTTL = 1&lt;/P&gt;

&lt;P&gt;[authentication]&lt;BR /&gt;
authSettings = Active_directory&lt;BR /&gt;
authType = LDAP&lt;/P&gt;

&lt;P&gt;[roleMap_Active_directory]&lt;BR /&gt;
admin = Splunk_Admins_Test&lt;/P&gt;

&lt;P&gt;[Active_directory]&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
anonymous_referrals = 0&lt;BR /&gt;
bindDN = splunkserviceaccount&lt;/P&gt;

&lt;P&gt;bindDNpassword = password&lt;BR /&gt;
charset = utf8&lt;BR /&gt;
groupBaseDN = CN=Users,DC=Mydomain, DC=com&lt;BR /&gt;
groupBaseFilter = (&amp;amp;(objectCategory=group)(name=Splunk_Admins_Test))&lt;BR /&gt;
groupMappingAttribute = dn&lt;BR /&gt;
groupMemberAttribute = member&lt;BR /&gt;
groupNameAttribute = cn&lt;BR /&gt;
host = hostid&lt;BR /&gt;
nestedGroups = 0&lt;BR /&gt;
network_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=Mydomain, DC=com&lt;BR /&gt;
userBaseFilter = (&amp;amp;(objectCategory=person)(objectClass=user))&lt;BR /&gt;
userNameAttribute = samaccountname&lt;/P&gt;

&lt;P&gt;When I ran this command my results are empty. &lt;BR /&gt;
ldapsearch -x –h &lt;LDAP_HOST&gt; –p &lt;LDAP_PORT&gt; –D "bind_dn" -w "bind_passwd" -b "user_basedn" "userNameAttribute=*"&lt;/LDAP_PORT&gt;&lt;/LDAP_HOST&gt;&lt;/P&gt;

&lt;P&gt;ldapsearch -x –h &lt;LDAP_HOST&gt; –p &lt;LDAP_PORT&gt; –D "bind_dn" -w "bind_passwd" –b "group_basedn" "groupNameAttribute=*"&lt;/LDAP_PORT&gt;&lt;/LDAP_HOST&gt;&lt;/P&gt;

&lt;P&gt;My log files indicate that it is unable to find the user &lt;/P&gt;

&lt;P&gt;01-14-2013 15:46:38.726 -0600 ERROR AuthenticationManagerLDAP - Could not find user="ssanke" with strategy="Active_directory"&lt;BR /&gt;
01-14-2013 15:46:38.727 -0600 ERROR UserManagerPro - LDAP Login failed, could not find a valid user="ssanke" on any configured servers&lt;/P&gt;

&lt;P&gt;Can any one point me where the error might be ? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87081#M2889</guid>
      <dc:creator>ssankeneni</dc:creator>
      <dc:date>2020-09-28T13:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87082#M2890</link>
      <description>&lt;P&gt;Make sure you don't have an account in splunk with the same username - it'll use the splunk account with the same name before the LDAP account.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87082#M2890</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-01-14T21:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87083#M2891</link>
      <description>&lt;P&gt;I don't have an account with the same name&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87083#M2891</guid>
      <dc:creator>ssankeneni</dc:creator>
      <dc:date>2013-01-14T21:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87084#M2892</link>
      <description>&lt;P&gt;I believe when trying to authenticate to AD, SSL is required. Try modifying these settings.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;SSLEnabled = 1&lt;BR /&gt;
port = 636&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can also try using ldapsearch: &lt;CODE&gt;ldapsearch -x -H ldaps://ldap_host -D "bind_dn" -W -b "user_basedn" "(samaccountname=*)" "cn"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87084#M2892</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-01-14T21:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87085#M2893</link>
      <description>&lt;P&gt;When I tried to change it to SSL from the web interface it is giving me an error while saving.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87085#M2893</guid>
      <dc:creator>ssankeneni</dc:creator>
      <dc:date>2013-01-14T21:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87086#M2894</link>
      <description>&lt;P&gt;What error were you given?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87086#M2894</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-01-14T21:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87087#M2895</link>
      <description>&lt;P&gt;After your previous update with errors, I think you need to remove the "userBaseFilter". Also for the groups, you will need to remove the "groupBaseFilter".  When brought together, your user filter is "&lt;CODE&gt;(&amp;amp;(samaccountname=%USER%)(objectCategory=person)(objectCategory=user))&lt;/CODE&gt;" and your group filter is "&lt;CODE&gt;(&amp;amp;(cn=*)(objectCategory=group)(name=Splunk_Admins_Test))&lt;/CODE&gt;". Since it looks like your CN=Users contains BOTH groups and users, you will want to make your groupBaseFilter= "(&amp;amp;(objectCategory=group)(!(grouptype=2)))"&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 22:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87087#M2895</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-01-14T22:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87088#M2896</link>
      <description>&lt;P&gt;The error while using SSL &lt;/P&gt;

&lt;P&gt;Encountered the following error while trying to update: In handler 'LDAP-auth': strategy="Active_directory" Error binding to LDAP. reason="Can't contact LDAP server"&lt;/P&gt;

&lt;P&gt;I tried by removing all the filters but still I'm unable to login. I even tried by using the (&amp;amp;(objectCategory=group)(!(grouptype=2)) filter.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 00:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87088#M2896</guid>
      <dc:creator>ssankeneni</dc:creator>
      <dc:date>2013-01-15T00:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87089#M2897</link>
      <description>&lt;P&gt;This works without SSL as well.&lt;/P&gt;

&lt;P&gt;Here's my working config, it be of might help..&lt;/P&gt;

&lt;P&gt;bindDN = CN=ldapquery,OU=Services,DC=test,DC=com&lt;BR /&gt;
bindDNpassword = aPassword&lt;BR /&gt;
charset = utf8&lt;BR /&gt;
groupBaseDN = CN=Splunk_Admins,OU=Groups,DC=test,DC=com;CN=Splunk_Power_Users,OU=Groups,DC=test,DC=com;CN=Splunk_Users,OU=Groups,DC=test,DC=com&lt;BR /&gt;
groupMappingAttribute = dn&lt;BR /&gt;
groupMemberAttribute = member&lt;BR /&gt;
groupNameAttribute = cn&lt;BR /&gt;
host = testDC.test.com&lt;BR /&gt;
nestedGroups = 0&lt;BR /&gt;
network_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=Users,OU=MyUsers,DC=test,DC=com&lt;BR /&gt;
userNameAttribute = samaccountname&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87089#M2897</guid>
      <dc:creator>clymbouris</dc:creator>
      <dc:date>2020-09-28T13:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87090#M2898</link>
      <description>&lt;P&gt;thanks for reply! This config is not working&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 17:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87090#M2898</guid>
      <dc:creator>ssankeneni</dc:creator>
      <dc:date>2013-01-15T17:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP authentication with Active Directory</title>
      <link>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87091#M2899</link>
      <description>&lt;P&gt;Gravedigging, I know. I ran into this and had a heck of a time figuring it out. We could map groups and users, and have nested security groups all over the place, BUT some users could not log in, even though we could see them in the Splunk UI as a member of the group(s) we were adding. Turns out that the users that could not log in, did not have an Active Directory DisplayName! The LDAP query would choke and die for those users, while users with DisplayNames would be able to log in. We changed the "realNameAttribute" to "samaccountname" and the users were immediately able to log in. The only side effect is that their login name is shown at the top of the UI rather than their full name, but with thousands of possible users, and the potential of this cropping up in the future, we're keeping the "samaccountname" and calling it a day.&lt;BR /&gt;
Working config, non-SSL:&lt;/P&gt;

&lt;P&gt;authentication.conf:&lt;BR /&gt;
[roleMap_MGMT-SE]&lt;BR /&gt;
admin = SE-GROUP&lt;/P&gt;

&lt;P&gt;[authentication]&lt;BR /&gt;
authSettings = MGMT-SE,MGMT-USERS&lt;BR /&gt;
authType = LDAP&lt;/P&gt;

&lt;P&gt;[roleMap_MGMT-USERS]&lt;BR /&gt;
splunktier1 = SplunkTier1&lt;BR /&gt;
splunktier2 = SplunkTier2&lt;BR /&gt;
splunktier3 = SplunkTier3&lt;/P&gt;

&lt;P&gt;[MGMT-SE]&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
anonymous_referrals = 0&lt;BR /&gt;
bindDN = CN=_splunksvc,OU=Service_Accounts,DC=mgmt,DC=com&lt;BR /&gt;
bindDNpassword = (removed)&lt;BR /&gt;
charset = utf8&lt;BR /&gt;
emailAttribute = mail&lt;BR /&gt;
groupBaseDN = CN=SE-GROUP,OU=Teams,OU=Security_Groups,DC=mgmt,DC=com&lt;BR /&gt;
groupMappingAttribute = dn&lt;BR /&gt;
groupMemberAttribute = member&lt;BR /&gt;
groupNameAttribute = cn&lt;BR /&gt;
host = ldap.server.com&lt;BR /&gt;
nestedGroups = 0&lt;BR /&gt;
network_timeout = 20&lt;BR /&gt;
port = 389&lt;BR /&gt;
realNameAttribute = samaccountname&lt;BR /&gt;
sizelimit = 4000&lt;BR /&gt;
timelimit = 15&lt;BR /&gt;
userBaseDN = DC=mgmt,DC=com&lt;BR /&gt;
userNameAttribute = samaccountname&lt;/P&gt;

&lt;P&gt;[MGMT-USERS]&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
anonymous_referrals = 1&lt;BR /&gt;
bindDN = CN=_splunksvc,OU=Service_Accounts,DC=mgmt,DC=com&lt;BR /&gt;
bindDNpassword = (removed)&lt;BR /&gt;
charset = utf8&lt;BR /&gt;
emailAttribute = mail&lt;BR /&gt;
groupBaseDN = OU=User_Groups,OU=Security_Groups,DC=mgmt,DC=com&lt;BR /&gt;
groupMappingAttribute = dn&lt;BR /&gt;
groupMemberAttribute = member&lt;BR /&gt;
groupNameAttribute = cn&lt;BR /&gt;
host = ldap.server.com&lt;BR /&gt;
nestedGroups = 0&lt;BR /&gt;
network_timeout = 20&lt;BR /&gt;
port = 389&lt;BR /&gt;
realNameAttribute = samaccountname&lt;BR /&gt;
sizelimit = 4000&lt;BR /&gt;
timelimit = 15&lt;BR /&gt;
userBaseDN = DC=mgmt,DC=com&lt;BR /&gt;
userNameAttribute = samaccountname&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-LDAP-authentication-with-Active-Directory/m-p/87091#M2899</guid>
      <dc:creator>wdprobradw</dc:creator>
      <dc:date>2020-09-28T19:01:33Z</dc:date>
    </item>
  </channel>
</rss>

