<?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: LDAP authentication error: user has matching LDAP groups but none are mapped to Splunk roles in Security</title>
    <link>https://community.splunk.com/t5/Security/LDAP-authentication-error-user-has-matching-LDAP-groups-but-none/m-p/115020#M3582</link>
    <description>&lt;P&gt;Your [roleMap_???] stanza is incorrect. &lt;/P&gt;

&lt;P&gt;The ??? must match the value you specified in the LDAP settings stanza name, in your case "ldap_AD". So the third stanza name should be [roleMap_ldap_AD] not [roleMap_ldap_AD_usergroups].&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:18:45 GMT</pubDate>
    <dc:creator>jsrobard</dc:creator>
    <dc:date>2020-09-29T13:18:45Z</dc:date>
    <item>
      <title>LDAP authentication error: user has matching LDAP groups but none are mapped to Splunk roles</title>
      <link>https://community.splunk.com/t5/Security/LDAP-authentication-error-user-has-matching-LDAP-groups-but-none/m-p/115019#M3581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My LDAP setup in etc/system/local/authentication.conf produces the following error when I try to authenticate with my crentials:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;06-23-2014 00:08:24.563 -0700 ERROR AuthenticationManagerLDAP - user="yayogev" has matching LDAP groups with strategy="ldap_AD", but none are mapped to Splunk roles
06-23-2014 00:08:24.564 -0700 ERROR UserManagerPro - LDAP Login failed, could not find a valid user="yayogev" on any configured servers 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tested with ldapsearch as suggested in thw "Test your LDAP configuration" page in the docs, and I got the expected results. On the other hand, in the Web UI undr "Access controls » Authentication method » LDAP strategies » LDAP Groups" I see a very partial list of groups.&lt;/P&gt;

&lt;P&gt;Here are the contents of authentication.conf (anonimized):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[authentication]
authType = LDAP
authSettings = ldap_AD

[ldap_AD]
host = ad.mycompany.com
port = 636
SSLEnabled = 1
bindDN = &amp;lt;bind-dn&amp;gt;
bindDNpassword = &amp;lt;...&amp;gt;
userBaseDN = OU=Employees, OU=My Company Users, DC=dev, DC=mycompany, DC=com
groupBaseDN = OU=My Company Groups,DC=dev,DC=mycompany, DC=com
groupBaseFilter = (objectclass=group)
userNameAttribute = sAMAccountName
realNameAttribute = cn
groupMappingAttribute = dn
groupMemberAttribute = member
groupNameAttribute = cn
timelimit = 10
network_timeout = 15

[roleMap_ldap_AD_usergroups]
admin = mygroup-splunk-admins
power = mygroup-core
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jun 2014 08:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/LDAP-authentication-error-user-has-matching-LDAP-groups-but-none/m-p/115019#M3581</guid>
      <dc:creator>yyogev</dc:creator>
      <dc:date>2014-06-23T08:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP authentication error: user has matching LDAP groups but none are mapped to Splunk roles</title>
      <link>https://community.splunk.com/t5/Security/LDAP-authentication-error-user-has-matching-LDAP-groups-but-none/m-p/115020#M3582</link>
      <description>&lt;P&gt;Your [roleMap_???] stanza is incorrect. &lt;/P&gt;

&lt;P&gt;The ??? must match the value you specified in the LDAP settings stanza name, in your case "ldap_AD". So the third stanza name should be [roleMap_ldap_AD] not [roleMap_ldap_AD_usergroups].&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/LDAP-authentication-error-user-has-matching-LDAP-groups-but-none/m-p/115020#M3582</guid>
      <dc:creator>jsrobard</dc:creator>
      <dc:date>2020-09-29T13:18:45Z</dc:date>
    </item>
  </channel>
</rss>

