Unix Technical Forum

Newbee question - why no create user in DB2 ?

This is a discussion on Newbee question - why no create user in DB2 ? within the DB2 forums, part of the Database Server Software category; --> Hi, I 'm new to DB2 (from Oracle background) and have some fundamental question. In Oracle, you create user ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 04:28 AM
cmc
 
Posts: n/a
Default Newbee question - why no create user in DB2 ?

Hi, I 'm new to DB2 (from Oracle background) and have some fundamental
question.

In Oracle, you create user account "within the database" to let user to
logon to the database. There is no tie between the unix account (or other
operating system) and the oracle user account - you can logon to the server
machine dose not mean you can logon to the database implicitly.

However, I notice that there is no account creation in DB2 v8 UDB server.
1. So am I correct to say that everyone has an valid Unix (or any O/S)
account in the DB2 server machine will be able to connect to database
(authentication=SERVER)?
2. What if I only want few unix user be able to logon to the database to do
their job ? In other word, how do I restrict the implicit authentication
(based on the O/S) to only few user ?

Looks like my concept with oracle does not apply to DB2. Hope someone can
help. Thanks
Tom


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 04:28 AM
Larry
 
Posts: n/a
Default Re: Newbee question - why no create user in DB2 ?

DB2 does not have internal authentication ... authentication is provided
by the OS. But authorization IS provided by DB2 (as it is with other
rdmses). So once you are authenticated by the OS and by DB2, you must
use the internal authorization facilities of DB2 to grant access for
that user to objects, packages, etc.

Answers below.

cmc wrote:
> Hi, I 'm new to DB2 (from Oracle background) and have some fundamental
> question.
>
> In Oracle, you create user account "within the database" to let user to
> logon to the database. There is no tie between the unix account (or other
> operating system) and the oracle user account - you can logon to the server
> machine dose not mean you can logon to the database implicitly.
>
> However, I notice that there is no account creation in DB2 v8 UDB server.
> 1. So am I correct to say that everyone has an valid Unix (or any O/S)
> account in the DB2 server machine will be able to connect to database
> (authentication=SERVER)?


No. You must either have a priviledge to connect.

> 2. What if I only want few unix user be able to logon to the database to do
> their job ? In other word, how do I restrict the implicit authentication
> (based on the O/S) to only few user ?


There is no implicit authorization for "normal" users. If they are
sysadmin, that is a different story. But for just plain old users, they
must be given the right priviledge in DB2. See the GRANT command.
>
> Looks like my concept with oracle does not apply to DB2. Hope someone can
> help. Thanks
> Tom
>
>

Larry Edelstein
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 04:28 AM
Knut Stolze
 
Posts: n/a
Default Re: Newbee question - why no create user in DB2 ?

Larry wrote:

> DB2 does not have internal authentication ... authentication is provided
> by the OS. But authorization IS provided by DB2 (as it is with other
> rdmses). So once you are authenticated by the OS and by DB2, you must
> use the internal authorization facilities of DB2 to grant access for
> that user to objects, packages, etc.


The basic, underlying idea in DB2 is to not have two instances that are
responsible for authentication (OS and DBMS). To further support that
approach you can implement your own user exit that does the authentication
in whichever way you like.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 04:28 AM
cmc
 
Posts: n/a
Default Re: Newbee question - why no create user in DB2 ?

I assume the first point refer to central User Authentication management.

But not quite understand the second point. Can you further elaborate ?

Do you mean application developer can use USER Exit to call the
authentication API to the OS (or the API facility like LDAP) ?

Thanks
Tom

"Knut Stolze" <stolze@de.ibm.com> wrote in message
news:d3vnr3$ica$1@fsuj29.rz.uni-jena.de...
> Larry wrote:
>
> > DB2 does not have internal authentication ... authentication is provided
> > by the OS. But authorization IS provided by DB2 (as it is with other
> > rdmses). So once you are authenticated by the OS and by DB2, you must
> > use the internal authorization facilities of DB2 to grant access for
> > that user to objects, packages, etc.

>
> The basic, underlying idea in DB2 is to not have two instances that are
> responsible for authentication (OS and DBMS). To further support that
> approach you can implement your own user exit that does the authentication
> in whichever way you like.
>
> --
> Knut Stolze
> Information Integration
> IBM Germany / University of Jena



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 04:28 AM
Serge Rielau
 
Posts: n/a
Default Re: Newbee question - why no create user in DB2 ?

cmc wrote:
> I assume the first point refer to central User Authentication management.
>
> But not quite understand the second point. Can you further elaborate ?
>
> Do you mean application developer can use USER Exit to call the
> authentication API to the OS (or the API facility like LDAP) ?
>
> Thanks
> Tom
>
> "Knut Stolze" <stolze@de.ibm.com> wrote in message
> news:d3vnr3$ica$1@fsuj29.rz.uni-jena.de...
>
>>Larry wrote:
>>
>>
>>>DB2 does not have internal authentication ... authentication is provided
>>>by the OS. But authorization IS provided by DB2 (as it is with other
>>>rdmses). So once you are authenticated by the OS and by DB2, you must
>>>use the internal authorization facilities of DB2 to grant access for
>>>that user to objects, packages, etc.

>>
>>The basic, underlying idea in DB2 is to not have two instances that are
>>responsible for authentication (OS and DBMS). To further support that
>>approach you can implement your own user exit that does the authentication
>>in whichever way you like.
>>
>>--
>>Knut Stolze
>>Information Integration
>>IBM Germany / University of Jena

>
>
>

Not the app-developer, but the DBA can set it up.
Search for "Security Plugin" in Information Center

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com