<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 22, 2016 at 3:28 PM, Michael A Grady <span dir="ltr"><<a href="mailto:mgrady@unicon.net" target="_blank">mgrady@unicon.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>So one "on the surface" advantage of using the LDAP config versus the JAAS config with v3 is the more obvious documented support for handling LDAP error codes/expiring passwords etc. with the LDAP config. But looking back, I see that even with v2 one could add:</div><div><br></div><div> <span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">authenticationControls="org.ldaptive.control.PasswordPolicyControl"</span><span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> </span></div><div><span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">to the JAAS config (if one included the Ldaptive jar). So is using the exact same password policy support in v3 with JAAS as simple as adding that above line if it is OpenLDAP, and as simple as adding something like:</span></div><div><br></div><span style="font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> authenticationControls="</span><font face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13px">org.ldaptive.auth.ext.ActiveDirectoryAuthenticationResponseHandler"</span></font><div><font face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13px"><br></span></font></div><div><font face="Verdana, Geneva, Helvetica, Arial, sans-serif"><span style="font-size:13px">if an AD source? Or does the latter only work if using the Ldaptive ldap-authn?</span></font></div></div></blockquote><div><br></div><div>I didn't implement the v3 LDAP support with an eye towards parity with the JAAS module.</div><div>That said, I feel fairly confident that either config will support the same functional behavior. (There may be some corner cases I'm forgetting...)</div><div>The issue revolves around limitations in the JAAS config syntax and the stateless nature of JAAS.</div><div>But, if you're properly motivated, I believe it can be done. (There is even support of configuring JAAS with Spring beans...)</div><div><br></div><div>However, I would spend my time getting the v3 config working rather than an exotic JAAS config, unless JAAS is the only option.</div><div><br></div><div>--Daniel Fisher</div><div><br></div></div></div></div>