Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using JDBCRealm

Status
Not open for further replies.

SuperMoonster

Programmer
Aug 11, 2005
59
BR
Hello everyone,

I'd like to know how I can use the JDBCRealm in my situation. Let me try to explain the tables I have:

- USERS: User, Password, UserGroup
- GROUPS: Group, Description
- MODULES: Module, name
- RIGHTS: UserGroup, Module, Edit, Insert, Delete, Print

I got this really nice tutorial: but still, it seems that it won't be useful for me because I need to store users and groups, not only users. My rights are defined by group (which means I will use the GROUPS table in the config) and I'll often need to retrieve the user from the session (and apparently this information won't be stored).

Does anyone know how I should do it with this kind of table structure?

Something else:What if I have my own encrypt algorithm and do not wanna use MD5, SHA or anything else?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top