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 > Database Server Software > DB2 > Authentication from inside DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-11, 08:47
farooq.kamal farooq.kamal is offline
Registered User
 
Join Date: Nov 2008
Posts: 7
Authentication from inside DB2

Is there anyway to authenticate users from inside DB2 instead of relying on the OS. We are installing a custom software on client machines with a DB and we want restrict access to ONLY our application such that no windows administrator or Linux root even has access.
Reply With Quote
  #2 (permalink)  
Old 01-18-11, 09:13
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Let the OS do the authentication, but you can control the authorization through GRANT and REVOKE.


Andy
Reply With Quote
  #3 (permalink)  
Old 01-19-11, 08:49
farooq.kamal farooq.kamal is offline
Registered User
 
Join Date: Nov 2008
Posts: 7
Authorization can be overridden by users if authentication is OS based so it doesn't solve my issue. Any other suggestions?
Reply With Quote
  #4 (permalink)  
Old 01-19-11, 09:19
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Authentication is the process of making sure the person is who they say they are. Nothing more. Authorization is the process of determining what that person can do. You , as the DBA, are in control of the authorization. You simply do not give the users the capability of setting up the authorization configuration.

Andy
Reply With Quote
  #5 (permalink)  
Old 01-21-11, 06:53
farooq.kamal farooq.kamal is offline
Registered User
 
Join Date: Nov 2008
Posts: 7
Andy I get your point but i think my situation is different. I am installing DB2 on someone else's machine and I want to deny all access except to my application.

Even if I create a new user while installing and keep the password to myself and authorize it, the windows administrator will always have the option of changing the password for that user and eventually accessing the db
Reply With Quote
  #6 (permalink)  
Old 01-21-11, 09:43
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You would have to write your own security plugin. See here for more info: DB2 UDB security, Part 2: Understand the DB2 Universal Database security plug-ins

Andy
Reply With Quote
  #7 (permalink)  
Old 01-21-11, 10:11
farooq.kamal farooq.kamal is offline
Registered User
 
Join Date: Nov 2008
Posts: 7
Andy, Thanks for the link, most appreciated. Looks like I have to dig into C after a long time Just one more question ... if someone copies the DB2 data files from one location to another location / server, could those files be used to recreate / res-instantiate the database? To be clear I'm not talking about any backup files ... just plain data files

Thanks
Farooq
Reply With Quote
  #8 (permalink)  
Old 01-21-11, 10:16
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
In theory, yes they could, but it would take someone with a lot of know-how. They could even restore a backup image even easier. To handle this, you would need an encryption solution. There are several types of those.

Andy
Reply With Quote
  #9 (permalink)  
Old 01-21-11, 10:22
farooq.kamal farooq.kamal is offline
Registered User
 
Join Date: Nov 2008
Posts: 7
Thanks Again Andy!!
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