* [EMAIL PROTECTED], August 21, 2001 8:55 AM
>
> I'm trying to add a second user into turbine-user as part of the whole
> build process. I have made an sql script (basically a copy of the
> turbine-security) which inserts one user (I'm giving the userid a value
> of '2') and two new roles into the turbine security tables. However, if
> I try to login as the user it *never* works, even though the user I
> created has all the necessary roles and permission my application
> requires. However, if I assign the 'turbine' user the same roles and
> permissions, I can log in!!
>
> I can create the same user through the sample app, using the same roles
> and permissions and it will work, it only seems to be if I do a manual
> sql insert into turbine_user that it doesn't. Does anybody have any
> suggestions? Could it be to do with the userid I am assigning to my user
> (perhaps it must be >= 100?)

Matt,

I was able to successfully add default roles, permissions and users by
adding SQL code to the file
WEB-INF/build/bin/torque/templates/sql/security/default-roles-perms.vm. This
is the file where the user "turbine" as well as the global group and the
turbine_root role are set up.

I was able to simply copy and paste the code in that file, editing it to
reflect the default roles, permissions, etc. I needed. The userids don't
seem to matter. I just have them assigned sequentially (0, 1, 2, ...).

If you have been editing a different file, try editing that one. If you have
already found that file, maybe the information isn't getting inserted in the
database correctly. After you run ant init you should take a look at the
TURBINE_* tables in your database to make sure the data got entered as you
expected.

Good luck,
Finn


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

Reply via email to