<?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 Why are some LDAP groups not being mapped to Splunk roles? in Security</title>
    <link>https://community.splunk.com/t5/Security/Why-are-some-LDAP-groups-not-being-mapped-to-Splunk-roles/m-p/243157#M6780</link>
    <description>&lt;P&gt;We are using Splunk 6.3.2 with a LDAP strategy (FreeIPA) which contains the following users and groups:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;User "joe" is member of group "app_splunk_user"&lt;/LI&gt;
&lt;LI&gt;Group "app_splunk_admin" is also member of group "app_splunk_user"&lt;/LI&gt;
&lt;LI&gt;User "mike" is member of group "app_splunk_admin"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In other words:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"joe" -&amp;gt; "app_splunk_user" (maps to role "user")&lt;/LI&gt;
&lt;LI&gt;"mike" -&amp;gt; "app_splunk_admin" (maps to role "admin") -&amp;gt; "app_splunk_user" (maps to role "user")&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Splunk's user database shows only "mike" with the role "admin". The role "user" will never be used, even not for "mike". "joe" doesn't appear as well.&lt;/P&gt;

&lt;P&gt;This is our configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[authentication]
authSettings = freeipa
authType = LDAP

[roleMap_freeipa]
admin = app_splunk_admin
user = app_splunk_user

[freeipa]
SSLEnabled = 0
anonymous_referrals = 0
bindDN = uid=splunk,cn=users,cn=accounts,dc=example,dc=com
bindDNpassword = topsecret
charset = utf8
emailAttribute = mail
groupBaseDN = cn=groups,cn=accounts,dc=example,dc=com
groupBaseFilter = (cn=app_splunk_*)
groupMappingAttribute = memberof
groupMemberAttribute = member
groupNameAttribute = cn
host = freeipa.example.com
nestedGroups = 1
network_timeout = 20
port = 389
realNameAttribute = cn
sizelimit = 1000
timelimit = 15
userBaseDN = cn=users,cn=accounts,dc=example,dc=com
userBaseFilter = (memberOf=cn=app_splunk_user,cn=groups,cn=accounts,dc=example,dc=com)
userNameAttribute = uid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These two lines from splunkd.log are interesting (sizelimit is "1000" at both ends, but Splunk still sends LDAP subtree requests with a sizelimit of 1):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-20-2016 17:00:04.725 +0100 WARN  ScopedLDAPConnection - strategy="freeipa" LDAP Server returned warning in search for DN="cn=users,cn=accounts,dc=example,dc=com". reason="Size limit exceeded"
01-20-2016 17:00:04.729 +0100 WARN  ScopedLDAPConnection - strategy="freeipa" LDAP Server returned warning in search for DN="cn=groups,cn=accounts,dc=example,dc=com". reason="Size limit exceeded"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:31:13 GMT</pubDate>
    <dc:creator>jeigl</dc:creator>
    <dc:date>2020-09-29T08:31:13Z</dc:date>
    <item>
      <title>Why are some LDAP groups not being mapped to Splunk roles?</title>
      <link>https://community.splunk.com/t5/Security/Why-are-some-LDAP-groups-not-being-mapped-to-Splunk-roles/m-p/243157#M6780</link>
      <description>&lt;P&gt;We are using Splunk 6.3.2 with a LDAP strategy (FreeIPA) which contains the following users and groups:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;User "joe" is member of group "app_splunk_user"&lt;/LI&gt;
&lt;LI&gt;Group "app_splunk_admin" is also member of group "app_splunk_user"&lt;/LI&gt;
&lt;LI&gt;User "mike" is member of group "app_splunk_admin"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In other words:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;"joe" -&amp;gt; "app_splunk_user" (maps to role "user")&lt;/LI&gt;
&lt;LI&gt;"mike" -&amp;gt; "app_splunk_admin" (maps to role "admin") -&amp;gt; "app_splunk_user" (maps to role "user")&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Splunk's user database shows only "mike" with the role "admin". The role "user" will never be used, even not for "mike". "joe" doesn't appear as well.&lt;/P&gt;

&lt;P&gt;This is our configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[authentication]
authSettings = freeipa
authType = LDAP

[roleMap_freeipa]
admin = app_splunk_admin
user = app_splunk_user

[freeipa]
SSLEnabled = 0
anonymous_referrals = 0
bindDN = uid=splunk,cn=users,cn=accounts,dc=example,dc=com
bindDNpassword = topsecret
charset = utf8
emailAttribute = mail
groupBaseDN = cn=groups,cn=accounts,dc=example,dc=com
groupBaseFilter = (cn=app_splunk_*)
groupMappingAttribute = memberof
groupMemberAttribute = member
groupNameAttribute = cn
host = freeipa.example.com
nestedGroups = 1
network_timeout = 20
port = 389
realNameAttribute = cn
sizelimit = 1000
timelimit = 15
userBaseDN = cn=users,cn=accounts,dc=example,dc=com
userBaseFilter = (memberOf=cn=app_splunk_user,cn=groups,cn=accounts,dc=example,dc=com)
userNameAttribute = uid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These two lines from splunkd.log are interesting (sizelimit is "1000" at both ends, but Splunk still sends LDAP subtree requests with a sizelimit of 1):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-20-2016 17:00:04.725 +0100 WARN  ScopedLDAPConnection - strategy="freeipa" LDAP Server returned warning in search for DN="cn=users,cn=accounts,dc=example,dc=com". reason="Size limit exceeded"
01-20-2016 17:00:04.729 +0100 WARN  ScopedLDAPConnection - strategy="freeipa" LDAP Server returned warning in search for DN="cn=groups,cn=accounts,dc=example,dc=com". reason="Size limit exceeded"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-are-some-LDAP-groups-not-being-mapped-to-Splunk-roles/m-p/243157#M6780</guid>
      <dc:creator>jeigl</dc:creator>
      <dc:date>2020-09-29T08:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some LDAP groups not being mapped to Splunk roles?</title>
      <link>https://community.splunk.com/t5/Security/Why-are-some-LDAP-groups-not-being-mapped-to-Splunk-roles/m-p/243158#M6781</link>
      <description>&lt;P&gt;Is there more than 1000 users in the Base DN you have configured?&lt;BR /&gt;
The error in SplunkD log looks like its searching your BASE DN of CN="cn=users,cn=accounts,dc=example,dc=com" and maybe not using the filter at all?&lt;/P&gt;

&lt;P&gt;Size Limit Exceeded is an LDAP server error indicating that the search request was unable to return all entries due to a limit. The problem encountered is that the users or groups you are looking for may have been in the 1001+ entries and are not being returned.&lt;/P&gt;

&lt;P&gt;In AD, the default size limit is typically 1000 entries. The LDAP server error is usually followed by an error indicating the number of entries returned which is a few entries less than the actual size limit. There is nothing you can do to change this limit unless you are the LDAP server administrator.&lt;/P&gt;

&lt;P&gt;In Splunk, you can use filters to reduce the number of LDAP entries returned so that you do not hit this limit. Is there a typo in your filter at all?  This page has some good examples &lt;A href="http://blogs.splunk.com/2009/10/01/ldap-basefilter-examples/"&gt;http://blogs.splunk.com/2009/10/01/ldap-basefilter-examples/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers Nick&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 05:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-are-some-LDAP-groups-not-being-mapped-to-Splunk-roles/m-p/243158#M6781</guid>
      <dc:creator>ncrofts_splunk</dc:creator>
      <dc:date>2016-01-21T05:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some LDAP groups not being mapped to Splunk roles?</title>
      <link>https://community.splunk.com/t5/Security/Why-are-some-LDAP-groups-not-being-mapped-to-Splunk-roles/m-p/243159#M6782</link>
      <description>&lt;P&gt;I have less than 50 users and groups configured.&lt;/P&gt;

&lt;P&gt;Just found some interesting new in Wireshark: One of the first LDAP search requests generated by Splunk sends a size limit of "1", which will be answered with "sizeLimitExceeded".&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="search request"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/983i1BA48F6A7ED316C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="search request" alt="search request" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="search response"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/984i17C8DF7CA95F5743/image-size/large?v=v2&amp;amp;px=999" role="button" title="search response" alt="search response" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 08:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-are-some-LDAP-groups-not-being-mapped-to-Splunk-roles/m-p/243159#M6782</guid>
      <dc:creator>jeigl</dc:creator>
      <dc:date>2016-01-21T08:35:30Z</dc:date>
    </item>
  </channel>
</rss>

