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 efis <ea...@gmail.com> on 2005/09/16 09:39:20 UTC

how to config slide to use acl in db?

i'm a beginner of slide, and now i'm trying to save the user information like username, password, and acl settings in db instead of xml, how can i do that?

anyone can help? thanks

Re: how to config slide to use acl in db?

Posted by efis <ea...@gmail.com>.
i have tried to use:
<store name="tx">
<securitystore classname="org.apache.slide.store.impl.rdbms.JDBCStore">         
      <parameter name="adapter">org.apache.slide.store.impl.rdbms.MySql41RDBMSAdapter</parameter>
      <parameter name="driver">com.mysql.jdbc.Driver</parameter>
      <parameter name="url">jdbc:mysql://localhost/slidestore</parameter>
      <parameter name="user">root</parameter>
      <parameter name="password">mysql</parameter>
      <parameter name="dbcpPooling">true</parameter>
      <parameter name="maxPooledConnections">3</parameter>
      <parameter name="isolation">SERIALIZABLE</parameter>
    <parameter name="compress">false</parameter>
  </securitystore>
</store>

and create a new DataBaseLoginModule to query user's information from database,

but the slide's realm: wrappers.catalina.SlideRealm is using the domain.xml,
if i modify the code in it, there's lots of code need to be changed, how can i do that to check user's permission in db instead of domain.xml?
or if there someone has finished it yet?

your help will be great appreciated.


----- Original Message ----- 
From: "Jeroen Reijn" <j....@hippo.nl>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Friday, September 16, 2005 3:52 PM
Subject: Re: how to config slide to use acl in db?


> Hi efis,
> 
> you will need to configure a JDBCStore.
> 
> For an example how to configure the store take a look at
> http://jakarta.apache.org/slide/howto-j2eestore.html and look at the MySQLStore
> definition.
> 
> Regards,
> 
> Jeroen
> 
> 
> 
> 
> 
> efis wrote:
>> i'm a beginner of slide, and now i'm trying to save the user information like username, password, and acl settings in db instead of xml, how can i do that?
>> 
>> anyone can help? thanks
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>

Re: thanks, i wanna put security setting in db and file content in filesystem

Posted by Jeroen Reijn <j....@hippo.nl>.
Efis,

i'm not sure, but I guess you can do that by configuring the 'securitystore'.

So instead of

<securitystore>
  <reference store="nodestore" />
</securitystore>

It should be something like:

<securitystore classname="org.apache.slide.store.impl.rdbms.JDBCStore">
  <parameter name="adapter">
   org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter
  </parameter>
  <parameter name="driver">com.mysql.jdbc.Driver</parameter>
  <parameter name="url">jdbc:mysql://localhost/Slide</parameter>
  <parameter name="user">root</parameter>
  <parameter name="dbcpPooling">true</parameter>
  <parameter name="maxPooledConnections">10</parameter>
  <parameter name="isolation">SERIALIZABLE</parameter>
  <parameter name="compress">false</parameter>
</securitystore>

Regards,

Jeroen

efis wrote:
> thanks for ur help, 
> but i wanna put security setting in db and file content in filesystem, how can i do that?
> thanks again

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


thanks, i wanna put security setting in db and file content in filesystem

Posted by efis <ea...@gmail.com>.
thanks for ur help, 
but i wanna put security setting in db and file content in filesystem, how can i do that?
thanks again

Re: how to config slide to use acl in db?

Posted by Jeroen Reijn <j....@hippo.nl>.
Hi efis,

you will need to configure a JDBCStore.

For an example how to configure the store take a look at
http://jakarta.apache.org/slide/howto-j2eestore.html and look at the MySQLStore
definition.

Regards,

Jeroen





efis wrote:
> i'm a beginner of slide, and now i'm trying to save the user information like username, password, and acl settings in db instead of xml, how can i do that?
> 
> anyone can help? thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org