<?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: How to troubleshoot authentication error &amp;quot;In handler 'LDAP-auth': Failed to retrieve a group with these settings&amp;quot;? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272580#M7349</link>
    <description>&lt;P&gt;Do you created the group splunk-admin and splunk-users in &lt;CODE&gt;authorize.conf file&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Also take a look at these sources:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Security/TestyourLDAPconfiguration"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Security/TestyourLDAPconfiguration&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt; &lt;A href="http://blogs.splunk.com/2009/07/30/ldapsearch-is-your-friend/"&gt;http://blogs.splunk.com/2009/07/30/ldapsearch-is-your-friend/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Authorizeconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Authorizeconf&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 18 Jul 2016 23:52:10 GMT</pubDate>
    <dc:creator>rafamss</dc:creator>
    <dc:date>2016-07-18T23:52:10Z</dc:date>
    <item>
      <title>How to troubleshoot authentication error "In handler 'LDAP-auth': Failed to retrieve a group with these settings"?</title>
      <link>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272579#M7348</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;As I am working on LDAP authentication, I am getting the error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;In handler 'LDAP-auth': Failed to retrieve a group with these settings
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can anyone please guide me what I doing wrong?&lt;/P&gt;

&lt;P&gt;My authentication.conf looks as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[authentication]
authType = LDAP
authSettings = ldaphost

[ldaphost]
host = XXXX
port = 1389
SSLEnabled = 0
bindDN = cn=Directory Manager 
bindDNpassword = XXXX
userBaseDN = dc=XXXX,dc=internal
userBaseFilter = (objectclass=posixAccount)
userNameAttribute = uid
realNameAttribute = cn
groupMappingAttribute = dn 
groupBaseDN = ou=groups,dc=XXXX,dc=internal
groupBaseFilter = (objectclass=groupOfNames)
groupNameAttribute = cn
groupMemberAttribute = uniqueMember
timelimit = 10
network_timeout = 15

[roleMap_ldaphost]
admin = splunk-admin
user = splunk-users
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2016 16:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272579#M7348</guid>
      <dc:creator>saifuddin9122</dc:creator>
      <dc:date>2016-07-18T16:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot authentication error "In handler 'LDAP-auth': Failed to retrieve a group with these settings"?</title>
      <link>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272580#M7349</link>
      <description>&lt;P&gt;Do you created the group splunk-admin and splunk-users in &lt;CODE&gt;authorize.conf file&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Also take a look at these sources:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Security/TestyourLDAPconfiguration"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Security/TestyourLDAPconfiguration&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt; &lt;A href="http://blogs.splunk.com/2009/07/30/ldapsearch-is-your-friend/"&gt;http://blogs.splunk.com/2009/07/30/ldapsearch-is-your-friend/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Authorizeconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Authorizeconf&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 18 Jul 2016 23:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272580#M7349</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2016-07-18T23:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot authentication error "In handler 'LDAP-auth': Failed to retrieve a group with these settings"?</title>
      <link>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272581#M7350</link>
      <description>&lt;P&gt;We use the following to find the ldap group names which start with splunk -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;bindDN = cn=spl_app,cn=users,dc=ms,dc=ds,dc=xxx,dc=com
groupBaseDN = cn=users,dc=ms,dc=ds,dc=xxx,dc=com
groupBaseFilter = (&amp;amp;(objectcategory=group)(cn=splunk*))
groupMappingAttribute = dn
groupMemberAttribute = member
groupNameAttribute = cn
userBaseDN = cn=users,dc=ms,dc=ds,dc=xxx,dc=com
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jul 2016 01:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272581#M7350</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-07-19T01:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot authentication error "In handler 'LDAP-auth': Failed to retrieve a group with these settings"?</title>
      <link>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272582#M7351</link>
      <description>&lt;P&gt;That error is trying to tell you that "With the ldap settings you have configured, when splunk tried to look up groups but did not find any". &lt;/P&gt;

&lt;P&gt;Fields of intrest along with their description:&lt;/P&gt;

&lt;P&gt;groupBaseFilter = &lt;BR /&gt;
 * OPTIONAL&lt;BR /&gt;
 * The LDAP search filter Splunk uses when searching for static groups&lt;BR /&gt;
 * Like userBaseFilter, this is highly recommended to speed up LDAP queries&lt;BR /&gt;
 * See RFC 2254 for more information&lt;BR /&gt;
 * This defaults to no filtering&lt;/P&gt;

&lt;P&gt;groupNameAttribute = &lt;BR /&gt;
* REQUIRED&lt;BR /&gt;
* This is the group entry attribute whose value stores the group name.&lt;BR /&gt;
* A typical attribute for this is 'cn' (common name)&lt;BR /&gt;
* Recall that if you are configuring LDAP to treat user entries as their own&lt;BR /&gt;
  group, user entries must have this attribute&lt;/P&gt;

&lt;P&gt;groupMemberAttribute = &lt;BR /&gt;
* REQUIRED&lt;BR /&gt;
* This is the group entry attribute whose values are the groups members&lt;BR /&gt;
* Typical attributes for this are 'member' and 'memberUid'&lt;BR /&gt;
* For example, consider the groupMappingAttribute example above using&lt;BR /&gt;
  groupMemberAttribute 'member'&lt;BR /&gt;
  * To declare 'splunkuser' as a group member, its attribute 'member' must&lt;BR /&gt;
    have the value 'splunkuser'&lt;/P&gt;

&lt;P&gt;Delving a little bit deeper with an example lets say your groups are saved in ou=Matrix Actors,dc=example,dc=com, this will be your groupBaseFilter. Then there are different groups in this ou namely cn=Good Guys,ou=Matrix Actors,dc=example,dc=com and cn=Bad Guys,ou=Groups,dc=example,dc=com. hence 'cn' is going to be your groupNameAttribute. Further more these groups have an attribute called member, for example member: neo, member=smith, member=morpheus. And your ldap has user entries like cn=neo,ou=Matrix Actors,dc=example,dc=com and  cn=Trinity,ou=Matrix Actors,dc=example,dc=com. So this kinda explains what these values mean.&lt;/P&gt;

&lt;P&gt;Next question would be how to debug this on LDAP server and find out which values should you choose for these attributes.&lt;BR /&gt;
something to the order of&lt;BR /&gt;
 ldapsearch -x -LLL -H ldap:/// -b dc=cloudapp,dc=net  dn&lt;BR /&gt;&lt;BR /&gt;
should list all the dn entries (I might be rusty with this) and you can drill down or use some UI tool to browse your ldap tree&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 04:03:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-troubleshoot-authentication-error-quot-In-handler-LDAP/m-p/272582#M7351</guid>
      <dc:creator>rdimri_splunk</dc:creator>
      <dc:date>2016-07-19T04:03:03Z</dc:date>
    </item>
  </channel>
</rss>

