<div dir="ltr">On Tue, Jun 25, 2013 at 4:55 AM, Francesco Malvezzi <span dir="ltr">&lt;<a href="mailto:francesco.malvezzi@unimore.it" target="_blank">francesco.malvezzi@unimore.it</a>&gt;</span> wrote:<br><div class="gmail_extra">

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I have just noticed that the great ldaptive ldap library allows handling<br>
password expiration policies 1) with just a few lines in login.config:<br>
<br>
ShibUserPassAuth {<br>
<br>
    org.ldaptive.jaas.LdapLoginModule sufficient<br>
    ldapUrl=&quot;ldap://<a href="http://ldap1.test.it:389" target="_blank">ldap1.test.it:389</a>&quot;<br>
    baseDn=&quot;ou=people,dc=test,dc=it&quot;<br>
    bindDn=&quot;cn=idp,ou=agents,dc=test,dc=it&quot;<br>
    bindCredential=&quot;secret&quot;<br>
    useStartTLS=&quot;true&quot;<br>
    authenticationControls=&quot;org.ldaptive.control.PasswordPolicyControl&quot;<br>
<br>
authenticationResponseHandlers=&quot;org.ldaptive.auth.ext.PasswordPolicyAuthenticationResponseHandler&quot;<br>
    userFilter=&quot;(uid={user})&quot;;<br>
}<br>
<br>
With ldaptive in jaas, login.jsp page receives a LoginException message<br>
with the password policy informations ready for parsing.<br>
<br>
No need for a custom authenticationHandler.<br>
<br>
This solves for us a tricky problem with the openldap password policy<br>
overlay.<br>
<br>
Do you see something against this solution (apart from the need to add a<br>
jar in lib)?<br></blockquote><div><br></div><div style>No issues that I can think of, you should be able to drop the jar in and use it. As Peter said, a contribution to the wiki would be great.</div><div style><br></div>

<div style>--Daniel Fisher</div><div style> </div></div></div></div>