Hi Mike,

At the risk of leading you astray, I pulled that code out of the James code
base about three months back. But, I didn't actually implement it into
production. Hopefully it helps you along your way:



-----Original Message-----
From: Stefano Bagnara [mailto:[EMAIL PROTECTED] 
Sent: 14 November 2007 07:12 PM
To: James Users List
Subject: Re: Question on initial configuration

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]




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

Reply via email to