You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Bogdan Ghidireac <bo...@ecstend.com> on 2004/01/19 19:01:38 UTC

auto create users

Hi,

I am trying to setup Slide (cvs version) to auto create users if they do not
exist. I added <auto-create-users>true</auto-create-users> to Domain.xml but
Slide was complaining about a transaction that is not started whenever a new
user is about to be created.

I looked at the code and I added few lines to SecurityImpl.java that started
and committed the transaction (I attached a patch if anyone is interested).
Now I can create the users but the default objectnode class is
slideroles.basic.UserRoleImpl and in Domain.xml I can see that the users
(root, john, john2) have org.apache.slide.structure.SubjectNode as class
name.

I changed <auto-create-users-role> to use
org.apache.slide.structure.SubjectNode but I have to modify Domain.xml by
hand and to add the generated users to a default role (/roles/user for
example).

I think <auto-create-users-role> is quite confusing. In my mind here it
should be a role not a class and all created users to be of class
org.apache.slide.structure.SubjectNode.

Maybe I do not understand the security correctly and that's why I want to
know if there is another way to auto create a user and put him in a default
role.

Thanks,
Bogdan


Re: auto create users

Posted by Marc Sommer <ma...@schlund.de>.
same problem. I also used the auto-create-users flag.

Bogdan, unfortunately I can't open your attachment.
could you post it again?

regards 
marc

Am Mon, 2004-01-19 um 19.01 schrieb Bogdan Ghidireac:
> Hi,
> 
> I am trying to setup Slide (cvs version) to auto create users if they do not
> exist. I added <auto-create-users>true</auto-create-users> to Domain.xml but
> Slide was complaining about a transaction that is not started whenever a new
> user is about to be created.
> 
> I looked at the code and I added few lines to SecurityImpl.java that started
> and committed the transaction (I attached a patch if anyone is interested).
> Now I can create the users but the default objectnode class is
> slideroles.basic.UserRoleImpl and in Domain.xml I can see that the users
> (root, john, john2) have org.apache.slide.structure.SubjectNode as class
> name.
> 
> I changed <auto-create-users-role> to use
> org.apache.slide.structure.SubjectNode but I have to modify Domain.xml by
> hand and to add the generated users to a default role (/roles/user for
> example).
> 
> I think <auto-create-users-role> is quite confusing. In my mind here it
> should be a role not a class and all created users to be of class
> org.apache.slide.structure.SubjectNode.
> 
> Maybe I do not understand the security correctly and that's why I want to
> know if there is another way to auto create a user and put him in a default
> role.
> 
> Thanks,
> Bogdan
> 
> 
> ______________________________________________________________________
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
-- 


Marc Sommer                             I::Dev
+49 721 91374-364                       Schlund + Partner AG
PGP Key-ID: 0743ED19                    http://www.schlund.de