Password expiring warning with AD
Daniel Fisher
dfisher at vt.edu
Wed Feb 10 10:11:02 EST 2016
On Tue, Feb 9, 2016 at 10:40 PM, Rich Graves <rgraves at carleton.edu> wrote:
> Yes, that does look simpler, and the already-notified cookie is very nice.
> My head hurts trying to parse AD pwdLastSet but it works with a contrived
> static YYMMdd attribute.
>
It's much, much worse than that[1].
I recommend you use the FileTimeValueTranscoder[2] that ships with
ldaptive, it will save you some pain.
The usage would look something like this:
LdapAttribute pwdLastSet = entry.getAttribute("pwdLastSet");
Calendar cal = pwdLastSet.getValue(new FileTimeValueTranscoder());
--Daniel Fisher
[1]
https://msdn.microsoft.com/en-us/library/windows/desktop/ms679430(v=vs.85).aspx
[2]
https://sourceforge.net/p/ldaptive/code/HEAD/tree/ldaptive/core/tags/ldaptive-1.0.7/src/main/java/org/ldaptive/ad/io/FileTimeValueTranscoder.java
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160210/8d3c292c/attachment.html>
More information about the users
mailing list