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 > Authorities

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-03, 05:33
Dipanjan Dipanjan is offline
Registered User
 
Join Date: Sep 2003
Posts: 84
Unhappy Authorities

Hello

I am using DB2 V8.1 ( no fixpak) on AIX 5.1. So far, I have been using the instance owner for the various operations on the databases belonging to that instance.

However, when I grant ( by connecting to the db as instance owner and then issuing the command GRANT DBADM on DATABASE to user YYY) DBADM authority to an OS user and then try connecting to the db using this user it returns me SQL30082N with reason code 24 ( Invalid userid/password). However, I am able to logon to the OS using the same user and password.

I am trying to connect to the db from the server itself.

Any ideas where the problem is ?
Reply With Quote
  #2 (permalink)  
Old 11-25-03, 06:04
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Authorities

What sort of authentication is it ?

CLIENT/SERVER ?

Cheers
Sathyaram


Quote:
Originally posted by Dipanjan
Hello

I am using DB2 V8.1 ( no fixpak) on AIX 5.1. So far, I have been using the instance owner for the various operations on the databases belonging to that instance.

However, when I grant ( by connecting to the db as instance owner and then issuing the command GRANT DBADM on DATABASE to user YYY) DBADM authority to an OS user and then try connecting to the db using this user it returns me SQL30082N with reason code 24 ( Invalid userid/password). However, I am able to logon to the OS using the same user and password.

I am trying to connect to the db from the server itself.

Any ideas where the problem is ?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 11-25-03, 06:18
Dipanjan Dipanjan is offline
Registered User
 
Join Date: Sep 2003
Posts: 84
Re: Authorities

Following are the dbm config parameters :-


Database manager authentication (AUTHENTICATION) = SERVER
Cataloging allowed without authority (CATALOG_NOAUTH) = NO
Trust all clients (TRUST_ALLCLNTS) = YES
Trusted client authentication (TRUST_CLNTAUTH) = CLIENT
Use SNA authentication (USE_SNA_AUTH) = NO
Bypass federated authentication (FED_NOAUTH) = NO
Reply With Quote
  #4 (permalink)  
Old 11-25-03, 06:41
Dipanjan Dipanjan is offline
Registered User
 
Join Date: Sep 2003
Posts: 84
I have got it to work , but this baffles me.

Previously I was logging on as the new user onto the OS and then issuing the following command :-

CONNECT to DB user AAA using BBB.
This was returning me the error msg.

However, now when I only say CONNECT to DB it connects.

And when I connect to the db as the instance owner using CONNECT to DB user instanceowner using password it works.

Can someone please explain to me this scenario ?
Reply With Quote
  #5 (permalink)  
Old 11-25-03, 07:07
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
When you say,

connect to db

db2 does not go to the OS and ask for password authentication
whereas, for
connect to d user user1 using passw

db2 asks the os to verify the uuid/password

Since, your instance owner works with the uid/pwd, seems that the system is in shape ... Verfiy the properties of the 'problematic' user

HTH

Sathyaram



Quote:
Originally posted by Dipanjan
I have got it to work , but this baffles me.

Previously I was logging on as the new user onto the OS and then issuing the following command :-

CONNECT to DB user AAA using BBB.
This was returning me the error msg.

However, now when I only say CONNECT to DB it connects.

And when I connect to the db as the instance owner using CONNECT to DB user instanceowner using password it works.

Can someone please explain to me this scenario ?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 11-25-03, 07:43
Dipanjan Dipanjan is offline
Registered User
 
Join Date: Sep 2003
Posts: 84
But the userid works while logging me on to the OS. What else can be wrong ?
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