Hi Jesse,

> Hello,
> I am using a database user repository. I need to have the passwords in
> plain text, because they have to come out of the database from time to
> time. Can I set the "pwdAlgorithm" field to somthing like plain, or text
> and then be able to put the passwords in as plain text?
>

Unfortunately, it's not that simple. The code assumes that the
"pwdAlgorithm" value is a standard name for a Message Digest algorithm.
There is no such "plaintext" algorithm like the one you need.

If you need this functionality, you could make a fix to
    org.apache.james.userrepository.DefaultUser.java
to do what you want. (Maybe just check for "plaintext" as a message
algorithm, and then don't hash the password). Since this functionality could
be useful to others, you may want to submit your changes back as a patch to
this list.

Of course, storing user's passwords as plaintext in a database can be a bit
dodgy, IMHO.

Hope this helps,
ciao
Daz


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to