<?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>question Re: com.cloudera.server.web.cmf.CmfLdapAuthenticationProvider: LDAP/AD authentication failed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/com-cloudera-server-web-cmf-CmfLdapAuthenticationProvider/m-p/32203#M7377</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;found a solution on my own. The reason for my issue was, that CM is using the access rights of the CM user for searching in LDAP and not that of the bind user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my LDAP config, the ACLs were preventing users from searching in the users subtree. Only a proxy user (CM bind user) was allowed to search there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After fixing this by adding "by self read" to ACLs for users subtree, everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Slavo&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2015 13:33:01 GMT</pubDate>
    <dc:creator>slavo</dc:creator>
    <dc:date>2015-09-23T13:33:01Z</dc:date>
    <item>
      <title>com.cloudera.server.web.cmf.CmfLdapAuthenticationProvider: LDAP/AD authentication failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/com-cloudera-server-web-cmf-CmfLdapAuthenticationProvider/m-p/32086#M7376</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We are running CDH 5.4.5 with Kerberos and OpenLDAP. While integration of OpenLDAP into Hue went smoothly, I'm struggling with configuring external authentication in Cloudera Manager:&lt;BR /&gt;&lt;BR /&gt;/var/log/cloudera-scm-server/cloudera-scm-server.log shows issues in LDAP/AD authentication (we have a fallback to database active)&lt;BR /&gt;&lt;BR /&gt;scm-web-107:com.cloudera.server.web.cmf.CmfLdapAuthenticationProvider: LDAP/AD authentication failure for USERNAME&lt;BR /&gt;&lt;BR /&gt;The CM external auth config is like follows:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Authentication Backend Order - External then Database&lt;BR /&gt;External Authentication Type - LDAP&lt;BR /&gt;LDAP URL - ldap://hostname:389 (the same as in Hue)&lt;BR /&gt;LDAP Bind User Distinguished Name - cn=ourproxyuser,ou=users,dc=mycompany,dc=com&lt;BR /&gt;LDAP Bind Password - (*****)&lt;BR /&gt;LDAP User Search Filter - (uid={0})&lt;BR /&gt;LDAP User Search Base - OU=users,dc=mycompany,dc=com&lt;BR /&gt;LDAP Group Search Filter - (memberUID={1})&lt;BR /&gt;LDAP Group Search Base - OU=groups,dc=mycompany,dc=com&lt;BR /&gt;LDAP Distinguished Name Pattern&amp;nbsp; - cn={0},OU=users,DC=mycompany,dc=com&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;all other attributes are empty (or default)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;From what I can see in slapd.log&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;# tail -f /var/log/slapd.log&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: slap_listener_activate(7):&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: &amp;gt;&amp;gt;&amp;gt; slap_listener(ldap:///)&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: connection_get(50): got connid=1036&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: connection_read(50): checking for input on id=1036&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: op tag 0x60, time 1442848176&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: conn=1036 op=0 do_bind&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: &amp;gt;&amp;gt;&amp;gt; dnPrettyNormal: &amp;lt;cn=USERNAME,ou=users,dc=mycompany,dc=com&amp;gt;&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: &amp;lt;&amp;lt;&amp;lt; dnPrettyNormal: &amp;lt;cn=USERNAME,ou=users,dc=mycompany,dc=com&amp;gt;, &amp;lt;cn=USERNAME,ou=users,dc=mycompany,dc=com&amp;gt;&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: do_bind: version=3 dn="cn=USERNAME,ou=users,dc=mycompany,dc=com" method=128&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: bdb_dn2entry("cn=USERNAME,ou=users,dc=mycompany,dc=com")&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: do_bind: v3 bind: "cn=USERNAME,ou=users,dc=mycompany,dc=com" to "cn=USERNAME,ou=users,dc=mycompany,dc=com"&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: send_ldap_result: conn=1036 op=0 p=3&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: send_ldap_response: msgid=1 tag=97 err=0&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: connection_get(50): got connid=1036&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: connection_read(50): checking for input on id=1036&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: op tag 0x63, time 1442848176&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: conn=1036 op=1 do_search&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: &amp;gt;&amp;gt;&amp;gt; dnPrettyNormal: &amp;lt;cn=USERNAME,ou=users,dc=mycompany,dc=com&amp;gt;&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: &amp;lt;&amp;lt;&amp;lt; dnPrettyNormal: &amp;lt;cn=USERNAME,ou=users,dc=mycompany,dc=com&amp;gt;, &amp;lt;cn=USERNAME,ou=users,dc=mycompany,dc=com&amp;gt;&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: =&amp;gt; get_ctrls&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: =&amp;gt; get_ctrls: oid="2.16.840.1.113730.3.4.2" (noncritical)&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: &amp;lt;= get_ctrls: n=1 rc=0 err=""&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: ==&amp;gt; limits_get: conn=1036 op=1 self="cn=USERNAME,ou=users,dc=mycompany,dc=com" this="cn=USERNAME,ou=users,dc=mycompany,dc=com"&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: =&amp;gt; bdb_search&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: bdb_dn2entry("cn=USERNAME,ou=users,dc=mycompany,dc=com")&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: send_ldap_result: conn=1036 op=1 p=3&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: send_ldap_response: msgid=2 tag=101 err=32&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: connection_get(50): got connid=1036&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: connection_read(50): checking for input on id=1036&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: op tag 0x42, time 1442848176&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: ber_get_next on fd 50 failed errno=0 (Success)&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: conn=1036 op=2 do_unbind&lt;BR /&gt;Sep 21 18:09:36 hostname slapd[37748]: connection_close: conn=1036 sd=50&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;there is an error "send_ldap_response: msgid=2 tag=101 err=32", but I just don't know why. How can I investigate this further?&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Slavo&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:57:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/com-cloudera-server-web-cmf-CmfLdapAuthenticationProvider/m-p/32086#M7376</guid>
      <dc:creator>slavo</dc:creator>
      <dc:date>2026-04-21T13:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: com.cloudera.server.web.cmf.CmfLdapAuthenticationProvider: LDAP/AD authentication failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/com-cloudera-server-web-cmf-CmfLdapAuthenticationProvider/m-p/32203#M7377</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;found a solution on my own. The reason for my issue was, that CM is using the access rights of the CM user for searching in LDAP and not that of the bind user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my LDAP config, the ACLs were preventing users from searching in the users subtree. Only a proxy user (CM bind user) was allowed to search there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After fixing this by adding "by self read" to ACLs for users subtree, everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Slavo&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 13:33:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/com-cloudera-server-web-cmf-CmfLdapAuthenticationProvider/m-p/32203#M7377</guid>
      <dc:creator>slavo</dc:creator>
      <dc:date>2015-09-23T13:33:01Z</dc:date>
    </item>
  </channel>
</rss>

