<div dir="ltr">On Tue, Jun 25, 2013 at 4:55 AM, Francesco Malvezzi <span dir="ltr"><<a href="mailto:francesco.malvezzi@unimore.it" target="_blank">francesco.malvezzi@unimore.it</a>></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="ldap://<a href="http://ldap1.test.it:389" target="_blank">ldap1.test.it:389</a>"<br>
baseDn="ou=people,dc=test,dc=it"<br>
bindDn="cn=idp,ou=agents,dc=test,dc=it"<br>
bindCredential="secret"<br>
useStartTLS="true"<br>
authenticationControls="org.ldaptive.control.PasswordPolicyControl"<br>
<br>
authenticationResponseHandlers="org.ldaptive.auth.ext.PasswordPolicyAuthenticationResponseHandler"<br>
userFilter="(uid={user})";<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>