<?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: AD Impossible Authentication even if groups are retrieved in Security</title>
    <link>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295007#M12755</link>
    <description>&lt;P&gt;We are sure that our userBaseDN includes the relevant user account.&lt;/P&gt;

&lt;P&gt;In the selected OU we don't have more that 1000 objects so I'm not sure to understand why we exceed the limit. &lt;/P&gt;

&lt;P&gt;Thanks anyway&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 15:34:12 GMT</pubDate>
    <dc:creator>rxlsplunk</dc:creator>
    <dc:date>2018-01-11T15:34:12Z</dc:date>
    <item>
      <title>AD Impossible Authentication even if groups are retrieved</title>
      <link>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295005#M12753</link>
      <description>&lt;P&gt;We are trying to add LDAP accounts in our Splunk Enterprise 7.0.1 &lt;BR /&gt;
We can see that Splunk is retrieving the groups and the users of the groups (in Map Groups) but even after adding all the roles, it is impossible to login with an AD user.&lt;/P&gt;

&lt;P&gt;The users don't appear in the Users menu.&lt;/P&gt;

&lt;P&gt;Here is our configuration :&lt;/P&gt;

&lt;P&gt;[authentication]&lt;BR /&gt;
authSettings = TEST&lt;BR /&gt;
authType = LDAP&lt;/P&gt;

&lt;P&gt;[roleMap_TEST]&lt;BR /&gt;
admin = ADMIN_AD&lt;BR /&gt;
can_delete = ADMIN_AD&lt;BR /&gt;
power = ADMIN_AD&lt;BR /&gt;
splunk-system-role = ADMIN_AD&lt;BR /&gt;
test_syslog = ADMIN_AD&lt;BR /&gt;
user = ADMIN_AD&lt;BR /&gt;
windows-admin = ADMIN_AD&lt;BR /&gt;
winfra-admin = ADMIN_AD&lt;/P&gt;

&lt;P&gt;[TEST]&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
anonymous_referrals = 0&lt;BR /&gt;
bindDN = account&lt;BR /&gt;
bindDNpassword = pass&lt;BR /&gt;
charset = utf8&lt;BR /&gt;
emailAttribute = mail&lt;BR /&gt;
groupBaseDN = OU=XXX,OU=XXX,OU=XXX,DC=XXX,DC=XXX&lt;BR /&gt;
groupMappingAttribute = distinguishedname&lt;BR /&gt;
groupMemberAttribute = member&lt;BR /&gt;
groupNameAttribute = cn&lt;BR /&gt;
host = hostname&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 = 20000&lt;BR /&gt;
timelimit = 15&lt;BR /&gt;
userBaseDN = OU=XXX,OU=XXX,OU=XXX,DC=XXX,DC=XXX&lt;BR /&gt;
userNameAttribute = samaccountname&lt;/P&gt;

&lt;P&gt;Here are the relevant logs that we found in splunkd.log (we've already tried to increase the size limit):&lt;/P&gt;

&lt;P&gt;01-11-2018 11:17:10.503 +0100 WARN  ScopedLDAPConnection - strategy="TEST" LDAP Server returned warning in search for DN="OU=XXX,OU=XXX,OU=XXX,DC=XXX,DC=XXX". reason="Size limit exceeded"&lt;BR /&gt;
01-11-2018 11:17:10.505 +0100 WARN  ScopedLDAPConnection - strategy="TEST" LDAP Server returned warning in search for DN="OU=XXX,OU=XXX,OU=XXX,OU=XXX,DC=XXX,DC=XXX". reason="Size limit exceeded"&lt;BR /&gt;
01-11-2018 11:17:38.736 +0100 INFO  AuthenticationManagerLDAP - Could not find user="adminuser" with strategy="TEST"&lt;BR /&gt;
01-11-2018 11:17:38.736 +0100 ERROR UserManagerPro - LDAP Login failed, could not find a valid user="adminuser" on any configured servers&lt;BR /&gt;
01-11-2018 11:17:38.736 +0100 ERROR UiAuth - user=adminuser action=login status=failure reason=user-initiated useragent="xx" clientip=XX.XX.XX.XX&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295005#M12753</guid>
      <dc:creator>rxlsplunk</dc:creator>
      <dc:date>2020-09-29T17:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: AD Impossible Authentication even if groups are retrieved</title>
      <link>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295006#M12754</link>
      <description>&lt;P&gt;Clearly you groupbaseDN is correct, as you can map groups, but you should also confirm that your userBaseDN would include the relevant user accounts.&lt;/P&gt;

&lt;P&gt;In a complex AD structure this is easy to overlook.&lt;/P&gt;

&lt;P&gt;The second issue is the report that the LDAP server is hitting the 1000 result limit.&lt;BR /&gt;
This is not the limit in Splunk (which you can also set) but a Domain Controller limitation.&lt;/P&gt;

&lt;P&gt;If you directory has more than 1000 users, its possible that your users are not in the first 1000 results returned by the DC, and thus never get 'found'&lt;/P&gt;

&lt;P&gt;There are two options available to you:&lt;BR /&gt;
1.) Adjust the AD limit of 1000 results - but be aware this can impact your AD for very large queries:&lt;BR /&gt;
&lt;A href="https://blogs.technet.microsoft.com/qzaidi/2010/09/01/override-the-hardcoded-ldap-query-limits-introduced-in-windows-server-2008-and-windows-server-2008-r2/"&gt;https://blogs.technet.microsoft.com/qzaidi/2010/09/01/override-the-hardcoded-ldap-query-limits-introduced-in-windows-server-2008-and-windows-server-2008-r2/&lt;/A&gt;&lt;BR /&gt;
2.) Narrow your userBaseDN to limit the number of users &amp;lt; 1000&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 13:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295006#M12754</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2018-01-11T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: AD Impossible Authentication even if groups are retrieved</title>
      <link>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295007#M12755</link>
      <description>&lt;P&gt;We are sure that our userBaseDN includes the relevant user account.&lt;/P&gt;

&lt;P&gt;In the selected OU we don't have more that 1000 objects so I'm not sure to understand why we exceed the limit. &lt;/P&gt;

&lt;P&gt;Thanks anyway&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 15:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295007#M12755</guid>
      <dc:creator>rxlsplunk</dc:creator>
      <dc:date>2018-01-11T15:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: AD Impossible Authentication even if groups are retrieved</title>
      <link>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295008#M12756</link>
      <description>&lt;P&gt;I just took another look at your config.&lt;/P&gt;

&lt;P&gt;You have &lt;CODE&gt;groupMappingAttribute = distinguishedname&lt;/CODE&gt;&lt;BR /&gt;
Try : &lt;CODE&gt;groupMappingAttribute = dn&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 16:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295008#M12756</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2018-01-11T16:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: AD Impossible Authentication even if groups are retrieved</title>
      <link>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295009#M12757</link>
      <description>&lt;P&gt;Thanks, I've tried it, it still doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 08:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295009#M12757</guid>
      <dc:creator>rxlsplunk</dc:creator>
      <dc:date>2018-01-12T08:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: AD Impossible Authentication even if groups are retrieved</title>
      <link>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295010#M12758</link>
      <description>&lt;P&gt;Here is my working config - there are a few differences, but that may be due to your redaction etc.&lt;/P&gt;

&lt;P&gt;[my_scheme]&lt;BR /&gt;
SSLEnabled = 0&lt;BR /&gt;
anonymous_referrals = 0&lt;BR /&gt;
bindDN = CN=Splunk User,OU=Splunk,OU=SomeOU,OU=SomeOU,DC=domain,DC=com&lt;BR /&gt;
bindDNpassword = $1$someencryptedPassword=&lt;BR /&gt;
charset = utf8&lt;BR /&gt;
emailAttribute = mail&lt;BR /&gt;
groupBaseDN = DC=domain,DC=com&lt;BR /&gt;
groupBaseFilter = (CN=splunk_*)&lt;BR /&gt;
groupMappingAttribute = dn&lt;BR /&gt;
groupMemberAttribute = member&lt;BR /&gt;
groupNameAttribute = cn&lt;BR /&gt;
host = dc.domain.com&lt;BR /&gt;
nestedGroups = 0&lt;BR /&gt;
network_timeout = 20&lt;BR /&gt;
port = 389&lt;BR /&gt;
realNameAttribute = displayname&lt;BR /&gt;
sizelimit = 1000&lt;BR /&gt;
timelimit = 15&lt;BR /&gt;
userBaseDN = OU=my_users,DC=domain,DC=com&lt;BR /&gt;
userNameAttribute = samaccountname&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:33:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/AD-Impossible-Authentication-even-if-groups-are-retrieved/m-p/295010#M12758</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-09-29T17:33:59Z</dc:date>
    </item>
  </channel>
</rss>

