<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>LDAP Authentication with ppolicy</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=53337948" />
  <subtitle>LDAP Authentication with ppolicy</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=53337948</id>
  <updated>2026-05-05T15:37:38Z</updated>
  <dc:date>2026-05-05T15:37:38Z</dc:date>
  <entry>
    <title>RE: LDAP Authentication with ppolicy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=53344502" />
    <author>
      <name>Tobias Liefke</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=53344502</id>
    <updated>2015-05-04T12:54:04Z</updated>
    <published>2015-05-04T12:54:04Z</published>
    <summary type="html">Hi Andew,&lt;br /&gt;&lt;br /&gt;thanks for confirming that.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve created a bug report: &lt;a href="https://issues.liferay.com/browse/LPS-55343"&gt;LPS-55343&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I know the Ext-Option, I&amp;#39;m always using it for creating patches of found bugs.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m currently developing a hook for other LDAP specific modifications - unfortunately I can&amp;#39;t change (extend) LDAPAuth in that hook, as it is from portal-impl.</summary>
    <dc:creator>Tobias Liefke</dc:creator>
    <dc:date>2015-05-04T12:54:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: LDAP Authentication with ppolicy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=53339832" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=53339832</id>
    <updated>2015-05-04T11:52:27Z</updated>
    <published>2015-05-04T11:52:27Z</published>
    <summary type="html">Hi Tobias,&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t see any settings to drive that -- you may have found a &amp;#34;bug&amp;#34;. I looked at the logic (as you did) and see the same thing. It seems like there should be a check in the &amp;#34;loop over all servers to try to authenticate&amp;#34; that detects if the current server == preferred service, skip it. Two options, assuming it is a bug, that I can think of. Once not so great, you could increase the &amp;#34;max failed&amp;#34; value -- but that won&amp;#39;t help if you DS is used by other applications (which it probably is). Alternatively, you could create an EXT plugin and patch the LDAPAuth class adding the logic mentioned above maybe?</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2015-05-04T11:52:27Z</dc:date>
  </entry>
  <entry>
    <title>LDAP Authentication with ppolicy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=53337947" />
    <author>
      <name>Tobias Liefke</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=53337947</id>
    <updated>2015-05-04T11:33:41Z</updated>
    <published>2015-05-04T11:33:41Z</published>
    <summary type="html">I&amp;#39;ve got a problem with the LDAPAuth, when a password policy with &amp;#34;maximum failed login attempts&amp;#34; is used in the LDAP server.&lt;br /&gt;Liferay always authenticates twice, if the user entered a wrong password. This leads to a locked useraccount after half of the allowed login attempts.&lt;br /&gt;&lt;br /&gt;Looking into the code: it always tries to &amp;#34;authenticateAgainstPreferredLDAPServer&amp;#34; with the LDAP Server ID of the User and if that fails it tries every configured LDAP server, which includes the preferred LDAP server.&lt;br /&gt;&lt;br /&gt;Do I miss something in the configuration?&lt;br /&gt;&lt;br /&gt;Tobias</summary>
    <dc:creator>Tobias Liefke</dc:creator>
    <dc:date>2015-05-04T11:33:41Z</dc:date>
  </entry>
</feed>
