That's a bug that should be fixed, but in the meantime what would happen if you 
tried "dateConverter" instead for the id? 





Misagh 


----- Original Message -----

From: "Andres" <afolg...@gmail.com> 
To: cas-dev@lists.jasig.org 
Sent: Friday, December 13, 2013 2:13:49 AM 
Subject: [cas-dev] LPPE in CAS 4-RC2 with OpenLDAP 

Hi all, 

I'm trying to configure CAS 4-RC2 to work with OpenLDAP and LPPE. 

The documentation for v3.5 won't work 
(https://wiki.jasig.org/pages/viewpage.action?pageId=26149328) and the v4 
version is still in progress and won't work either 
(https://wiki.jasig.org/pages/viewpage.action?pageId=55543468). 

So I'm trying to figure it out myself, and this is the configuration I've 
guessed so far: 

The authenticator handler: 

<bean id="ldapAuthenticationHandler" 
class="org.jasig.cas.adaptors.ldap.lppe.LPPEAuthenticationHandler" 
p:principalIdAttribute="uid" 
c:authenticator-ref="authenticator" 
c:configuration-ref="ldapPasswordPolicyConfiguration"> 
<property name="principalAttributeMap"> 
<map> 
<entry key="member" value="member" /> 
<entry key="mail" value="mail" /> 
<entry key="displayName" value="displayName" /> 
</map> 
</property> 
</bean> 

The LPPE configuration: 

<bean id="ldapPasswordPolicyConfiguration" 
class="org.jasig.cas.adaptors.ldap.lppe.PasswordPolicyConfiguration"> 
<property name="ldapDateConverter"> 
<bean id="timeUnitDateConverter" 
class="org.jasig.cas.adaptors.ldap.lppe.TimeUnitLdapDateConverter"> 
<property name="timeUnit"> 
<util:constant static-field="java.util.concurrent.TimeUnit.SECONDS" /> 
</property> 
</bean> 
</property> 
<property name="alwaysDisplayPasswordExpirationWarning" value="true" /> 
<property name="passwordExpirationDateAttributeName" value="pwdMaxAge" /> 
<property name="accountLockedAttributeName" value="pwdAccountLockedTime" /> 
<property name="accountPasswordMustChangeAttributeName" value="pwdMustChange" 
/> 
<property name="passwordPolicyUrl" value="https://passwordmanagement.url"; /> 
</bean> 

I'm stuck because the ldapDateConverter attribute doesn't have a proper 
getter/setter in the class (it has getDateConverter/setDateConverter instead, 
which doesn't match the attribute name), so Spring won't inject the attribute 
and throws an exception. 

Maybe I can correct the class, but I don't know how to write an overwriting 
class in the maven overlay. 

Any ideas? 

Thank you. 
-- 
You are currently subscribed to cas-dev@lists.jasig.org as: mmoay...@unicon.net 
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev 


-- 
You are currently subscribed to cas-dev@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to