FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:How to use the database user authentication? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How to use the database user authentication?
#222
boatboy (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
How to use the database user authentication? 4 Months, 3 Weeks ago Karma: 0  
I want to change authentication,use database user
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/02 11:15 By boatboy.
  The administrator has disabled public write access.
#223
pavila (Admin)
Admin
Posts: 215
graph
User Offline Click here to see the profile of this user
Gender: Male OpenKM
Re:How to use the database user authentication? 4 Months, 2 Weeks ago Karma: 7  
I don't understant your question ¿?
 
Report to moderator   Logged Logged  
 
Be open, my friend!
  The administrator has disabled public write access.
#226
boatboy (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:How to use the database user authentication? 4 Months, 2 Weeks ago Karma: 0  
I want to create user and role of openkm system in db,not openkm-roles.properties and openkm-users.properties .when I login use users and roles of db.


I am very thank you
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#228
jllort (Admin)
Admin
Posts: 212
graph
User Offline Click here to see the profile of this user
Re:How to use the database user authentication? 4 Months, 2 Weeks ago Karma: 4  
You have two ways:

1. OpenKM 2.0. Enterprise edition will come with database user autentication ( you could use it, but it's pay supported version).

2- If you want to connect to existing database take a Look at this documentation entry point OpenKM Configuration.

You must change OpenKM login to autenticate to your database ( really simply ).
For full integration you need to extend PrincipalAdapter class ( really simply too ).

If you decide to do the second option, see Developer guide ( on les 10 minuts you've got running).

Hope It could help you.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/04 12:20 By pavila.
 
Be open my friend
  The administrator has disabled public write access.
#725
coolmudassir4u (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:How to use the database user authentication? 1 Month, 2 Weeks ago Karma: 0  
I am trying to integrate my openkm with postgresql but it gives me error that my repository home is locked by another process,i remove .lock in repository directory/remove repository directory/shutdown and start properly/install and configure multiple times with my previous configuration but..... but................ nothing works for me ,i take full Oracle integration as example from openkm documentation, i successfully integrate ldap with openkm ,please anyone guide me how i integrade my postgresql with openkm???????.........
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#726
jllort (Admin)
Admin
Posts: 212
graph
User Offline Click here to see the profile of this user
Re:How to use the database user authentication? 1 Month, 2 Weeks ago Karma: 4  
About user autentication it must be something like it:

On login-config.xml

<application-policy name="OpenKM">
<authentication>
<login-module code ="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
<module-option name = "unauthenticatedIdentity">Anonymous</module-option>
<module-option name="dsJndiName">java:/jndi.datasource.name.db</module-option>
<module-option name="principalsQuery">select user_pwd_table as PASSWD from user_table where user_name=?</module-option>
<module-option name="rolesQuery">select role_name as ROLEID, 'Roles' from user_table, roles_table where user_roles_name=user_name and user_name=?</module-option>
</login-module>
</authentication>
</application-policy>

The query it'll be dependant on your table structure ( remember it, it's only and exemple of how could be )

Some file called datasource-ds.xml or something fileXXX-ds.xml to create jndi name like it

<?xml version="1.0" encoding="UTF-8"?>

<datasources>
<local-tx-datasource>
<jndi-name>jndi.datasource.name.db</jndi-name>
<connection-url>jdbcostgresql://localhost/you_databasename</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>user</user-name>
<password>pwd</password>
</local-tx-datasource>
</datasources>
 
Report to moderator   Logged Logged  
 
Be open my friend
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop