If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Security for local application

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-07, 19:35
martin27 martin27 is offline
Registered User
 
Join Date: Jan 2007
Posts: 1
Security for local application

I'm wondering what various solutions people know about for this problem of user security with client apps connected to database servers. The most common form of "security" is to store one single database password in a local app or in a config file and login that way. Individual users would be then granted privileges based on a secondary table in the database that the server login user has privileges on. I know that's basically not a great way.

I guess a better way would have each client user have his own password in the database. This seems a bit messy for most database systems though because users and roles are maintained at a global level to the database server. There are bound to be collisions, especially if you're using an app that shares a database server with other users.

You could solve the problem with encoding user names with something like myapp_tom for user tom and database myapp. Is that something that people do?

I'm just wondering how people get around this issue. The SQL standard seems clumsy in that it doesn't have a simple mechanism for user logins on a per database level.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-01-07, 09:12
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
It really depends on your DBMS what you want and can do. Oracle manages users at the DBMS level. Thus, your last sentence is not true there. DB2 allows security plugins with which you can do whatever you want. So you could manage users at the OS level, DBMS level, or use other tools like Kerberos, NIS, or RACF.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On