Hi,
we have use ldap-pwd-expiration module as a starting point to implement
warnings and a short webflow to change passwords if the user has a
password, which is short of expiring.
There were a few things, which we did differently than shown in the
wiki.
1. We started with placing the module inside the checked out svn
sources and edited the pom.xml directly to include it.
While that seemed to work - it created a jar file with the classes
inside - the war file of our overlay build hat a few problems.
a) The needed "principal" could not be found by the webflow, since
b) ldap-pwd-expiration changed a few central classes while remaining
the old classnames.
Those two things were a result of ordering of the jar-files in
WEB-INF/lib/. Tomcat will use the first class for a given name, that it
finds in the classloader. (We could have solved it by renaming
ldap-pwd-expiration jar to start with aa- or something like that. But
that seems a bit flakey.
2. We changed the webflow of ldap-pwd-expiration as suggested by
another thread on this list, to leave out the "viewScope" out of the new
end-states.
3. We changed the code, which parses the ldap exception messages, so it
can be configured by spring. We don't use ads and our ldap server has
different error messages.
4. As a result we copied all files from the ldap-pwd-expiration module
into our overlay directory and changed the names of the classes, to
avoid classloader problems.
5. (There is a minor bug in the original source. It will overwrite the
instance variable validDays with user specific values)
Is there any interest in implementing the functionality of this module
into the main sources?
Any thoughts?
Felix
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user