[Cartoweb-users] Help: User Management Plugin

Oliver Christen oliver.christen at camptocamp.com
Tue Nov 28 06:17:58 EST 2006


There arent any tutorial, but it is quite clearly explained in the doc:
http://www.cartoweb.org/doc/cw3.3/xhtml/user.security.html#user.security.auth.users_roles

in this exemple, a database's table 'users' simply contains a users, 
passwords and roles column, and thats it.

dbSecurityQueryUser: The SQL query to perform to check a username/password 
pair is valid.
It should return a row if the pair is correct.
For instance: "SELECT * FROM users WHERE username='%s' AND password='%s'".

dbSecurityQueryRoles: The SQL query used to retrieve roles for a given user.
It should return one column with all roles for the user each row.
For instance: "SELECT roles FROM users WHERE username='%s'"



>
> Is there any tutorial or works that explain the User Management Plugins 
> via
> database...???
>
> -- 
> View this message in context: 
> http://www.nabble.com/Help%3A-User-Management-Plugin-tf2715799.html#a7572148
> Sent from the cartoweb-users mailing list archive at Nabble.com.
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> 



More information about the Cartoweb-users mailing list