Christer,

I think the tables that get inserts for new users are rolleruser and website 
(at least in Roller 1.x).  Perhaps others could please jump in if I am missing 
anything (or to better explain the process).

Encryption depends on settings in roller.properties.  See 
ConfigurationGuide_2.x under heading "Default configuration".  In all 
likelihood your settings are:
passwds.encryption.enabled=true
passwds.encryption.algorithm=SHAIn the code, what is ultimately getting called 
is org.roller.util.Utilities method encodePassword()

You might also find helpful Dave Johnson's blog post from earlier this month 
"Scripting Roller with Groovy".  Specifically "Example #1: Creating a new 
blog".  I believe these Groovy examples use Roller 2.0. 

            hth,

            g

----- Original Message ----- 
From: "Christer Nordvik" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 28, 2005 12:19 PM
Subject: How to add rolleruser from external application


Hi again.

Since I didn't get any response on my last email, I'll try to simplify
the question :)

How can I add a user to the Roller database from my own application?

What tables do I need to do a insert in, and how must I encode the
password? I noticed that the password is encrypted so I guess I need
to use the same algorithm to encode the password as Roller does.

Any pointers would be very helpful!

Cheers,
Christer

Reply via email to