Unix Technical Forum

user authentication

This is a discussion on user authentication within the DB2 forums, part of the Database Server Software category; --> hi, can user connect to db2 server without providing username and password from client? regards...


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, 06:57 AM
db2admin
 
Posts: n/a
Default user authentication

hi,

can user connect to db2 server without providing username and password
from client?

regards

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:58 AM
Pierre Saint-Jacques
 
Posts: n/a
Default Re: user authentication

Yes, there's a setting parm. in the instance config. file for the server
that defines
AUTHENTICATION CLIENT
This means that the client is responsible for providing an id at connect
time that the server will "blindly" accept.
From then on, anything that happens to your instance and/or server is
thoroughly deeserved.

You are asking the server to accept any connection that has been verfified a
t the client.
All I'd need is get the instance owner name on my windows xp laptop and
build an id there with it and ant pw.
I'd logon on my laptop with that id and then issue a connect request to your
server and be accepted as the instance owner there: and could I get
creative?????

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2admin" <jagdip@gmail.com> a écrit dans le message de news:
1146754486.852010.257760@v46g2000cwv.googlegroups. com...
> hi,
>
> can user connect to db2 server without providing username and password
> from client?
>
> regards
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 06:58 AM
db2admin
 
Posts: n/a
Default Re: user authentication

i do not want to compromise security
is there a way to set specific usernames of groups and unix hostnames (
clients ) which can connect to db2 server ?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 06:58 AM
Ian
 
Posts: n/a
Default Re: user authentication

db2admin wrote:
> i do not want to compromise security
> is there a way to set specific usernames of groups and unix hostnames (
> clients ) which can connect to db2 server ?
>


You can control who can connect by REVOKING CONNECT authority on your
database from PUBLIC, and then granting to the specific users or groups.

You can prevent these users from actually logging in to the server
using whatever method you prefer.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 06:58 AM
Larry
 
Posts: n/a
Default Re: user authentication

db2admin wrote:
> i do not want to compromise security
> is there a way to set specific usernames of groups and unix hostnames (
> clients ) which can connect to db2 server ?
>

Yes ... you must set them up using the facilities of the OS
(etc/group/passwd). That's what DB2 uses.

Larry Edelstein
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 06:58 AM
Pierre Saint-Jacques
 
Posts: n/a
Default Re: user authentication

Yes, as Larry says in the next answer, you can use the OS to identify id's
and groups.
The users will have to provide the id and the password when they connect,
which goes against your initial request of your first post:

"can user connect to db2 server without providing username and password
from client?"

It seems you want to have your cake and eat it too.
You don't want to provide a username and a password BUT you don't want to
com^romise security.
By the way what security if there's no way to identify the user?

Maybe a little more explanation on what you are trying to achieve might help
us!!!!

HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"db2admin" <jagdip@gmail.com> a écrit dans le message de news:
1146775997.504522.207310@u72g2000cwu.googlegroups. com...
>i do not want to compromise security
> is there a way to set specific usernames of groups and unix hostnames (
> clients ) which can connect to db2 server ?
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 06:58 AM
Mark Yudkin
 
Posts: n/a
Default Re: user authentication

The best solution is to use Kereros. The user logs on to his workstation via
whatever security technology you have in place (e.g. smartcard), and
Kerberos handles the issues of distributed security. DB2 will leverage the
O/S Kerberos when configured to do so. Since you didn't list your platforms,
I'll have to refer you to the DB2 and O/S documentation for the details on
implementing Kerberos. There are also some good white papers on the DB2 web
site that address these issues.

The list of users / groups that may connect is controlled by GRANT / REVOKE
statements. The DB2 documentation explains GRANTs.

"db2admin" <jagdip@gmail.com> wrote in message
news:1146754486.852010.257760@v46g2000cwv.googlegr oups.com...
> hi,
>
> can user connect to db2 server without providing username and password
> from client?
>
> regards
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 06:58 AM
Hildo Biersma
 
Posts: n/a
Default Re: user authentication

In article <1146754486.852010.257760@v46g2000cwv.googlegroups .com>,
db2admin <jagdip@gmail.com> wrote:
>hi,
>
>can user connect to db2 server without providing username and password
>from client?


Yes, but to do so securely requires the use of the client and server
side security plugins.

In my workplace, we use the GSS security plugins to perform the DB2
security handshake based on Kerberos tickets that are established when
the user first logins in to the Unix/Windows system.

However, that only work if your OS environment already contains the
required Kerberos support - simple on Windows 2000/XP with Active
Directory, but not simple on Unix unless you're already a Kerberos shop.

If you don't have a good system programmer available to your DBA staff,
or you don't have the ability to make sure a shared library / DLL is
installed and mainrtained on all clients, then the security plugins are
a no-go.

Hildo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 07:00 AM
db2admin
 
Posts: n/a
Default Re: user authentication

thanks to all

we use AIX / DB2 .
certain users hard code their password in scripts from clients
connecting to UDB servers
they do not want to do that because anybody can look their password
from those text scripts.
they need ability to connect to database without providing passwords
and usernames.
kerberos will be a major infrastructure change which can be difficult
to implement

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 05:14 AM.


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