To implement this in java, all you have to do is call

org.apache.james.security.DigestUtil.digestString(yourPassword, "SHA");

this will return a hashed password

The DigestUtil object can be found in the james-[version].jar


On Nov 14, 2007 12:11 PM, Stefano Bagnara <[EMAIL PROTECTED]> wrote:

> Mike McGonagle ha scritto:
> > Hello all,
> >
> > I looked at James about a year or so ago, and really liked what I saw.
> > Now that I am getting to the point where I am actually going to set it
> > up for use, I was wondering if there is some way to configure it to
> > work with a Database for User Authentication? I noticed a few things
> > that MENTION it, but give no indication as to where to actually look
> > for this or how to set it up.
> >
> > I would like to be able to set this up so that anyone can add a user
> > by adding them to the database, and using the default method of adding
> > users would just confuse almost everyone else I work with.
> >
> >
> > Thanks,
> >
> > Michael McGonagle
>
> You can use the db based user repository (there is a comment in the
> default config.xml).
>
> The query for a user is not cached, so if you add an user directly to
> the db it will work for james (you can even see the query done to
> retrieve users in the sqlResources.xml).
>
> The problem is the password. You have to encode the password the way
> JAMES expect it. If you search this mailing list archives you can
> probably find a description on how to do that in JAVA and PHP.
>
> Stefano
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Rogier Doekes
[EMAIL PROTECTED]

Reply via email to