Are there any utilities in to decode the "userPassword" attribute to a String or do I need to write that functionality myself?
Thanks,
Are there any utilities in to decode the "userPassword" attribute to a String or do I need to write that functionality myself?
Thanks,
We pretty much ignore the actual data type of the attributes and leave it up to the user to keep track of that, so you'll probably need to take care of this yourself.
If you happen to invent some general way of handling this type of thing in Spring LDAP it's quite likely to be something we might want to include.
I managed to figure out what I wanted to do, which was basically to create a UserDetailsService for Acegi that talks to LDAP instead of a database.
http://forum.springframework.org/showthread.php?t=30061
Thanks for your help - Spring-LDAP rocks! ;-)
Matt
userPassword is (may be) encoded with a unix crypt command. I use this Java implementation:
http://www.dynamic.net.au/christos/crypt/