Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

DB2 authentication
Here's a question I posted to the VSE list.  I know there are few if any VSE
users around here, but I thought a z/OS person (or even another OS) might be
able to answer...


Still pondering VSE and DB2.  Don't have DB2 Server for VSE up yet to
actually test anything, but I feel the burning need to have this question
answered sooner rather than later...

According to the SQL Reference (for VSE) both an authorization name (userID)
and a password are always required for a batch job using the CONNECT
statement.  What does this mean in terms of operators submitting batch jobs
that access DB2 databases?  I can't imagine that you would have the operator
type in their user ID and password each time they need to submit a
production batch job.  Do you use your ESM to determine who the user is?
How do you get the password?

Can operators have database rights only through applications?  In other
words, we wouldn't want to have an operator be able to connect to a database
via the CLP or Control Center and update tables, but they certainly need to
have update capability when submitting batch jobs.  [Actually, I believe I
have found the answer to this, and the answer is yes, by only authorizing
the operators to have rights via bound packages.]

If connecting to a remote DB2/LUW database, how does the DB2/LUW "client"
authentication come in to play.  Is there any type of ID mapping available?
For instance, right now I have a VSE user ID of 'FJS', but my ID on our
DB2/LUW server is 'fjswarbr'.  Do these names need to be the same, or is
there some way to 'map' them?

Thanks!
Frank


---
Frank Swarbrick
Senior Developer/Analyst - Mainframe Applications
FirstBank Data Corporation - Lakewood, CO  USA

Report this thread to moderator Post Follow-up to this message
Old Post
Frank Swarbrick
09-21-06 11:55 PM


Re: DB2 authentication
Frank,

I know nothing about VSE, but anyway I would like to comment on DB2/LUW
authentication.

When you are connecting to DB2/LUW database you have to specify user
and password, eg. CONNECT TO dbonluw USER dbuser USING password.
Sometimes the user is different from the user that runs application, so
in your case the dbuser/password should be stored within a batch
script. On z/OS you can configure Communications Database to store
users and passwords when connecting z/OS client to DB2/LUW database (as
described in: "Understanding DB2(R): Learning Visually with
Examples", Appendix E),but I don't know how it differs from DB2 for
VSE.

How DB2/LUW authenticates depends on DB2 instance configuration. With
default configuration it is based on operating system users and
passwords on DB2 server. But also you can write your authentication
plugin (GSS-API), which for example positively authenticate only users
who are connecting from certain application. The same users might not
be authenticated, when connecting from CLP. There is set of articles on
ibm.com/developerworks describing DB2/LUW authentication.
Authentications plugins are used in special cases, so probably not in
your case.

-- Artur Wronski


Report this thread to moderator Post Follow-up to this message
Old Post
Artur
09-24-06 11:55 PM


Re: DB2 authentication
Hi Artur,

I don't see that VSE has anything similar to the z/OS CDB, but I think I can
at least make some use of how it works.

Thanks for the information,
Frank

---
Frank Swarbrick
Senior Developer/Analyst - Mainframe Applications
FirstBank Data Corporation - Lakewood, CO  USA
 
Frank,

I know nothing about VSE, but anyway I would like to comment on DB2/LUW
authentication.

When you are connecting to DB2/LUW database you have to specify user
and password, eg. CONNECT TO dbonluw USER dbuser USING password.
Sometimes the user is different from the user that runs application, so
in your case the dbuser/password should be stored within a batch
script. On z/OS you can configure Communications Database to store
users and passwords when connecting z/OS client to DB2/LUW database (as
described in: "Understanding DB2(R): Learning Visually with
Examples", Appendix E),but I don't know how it differs from DB2 for
VSE.

How DB2/LUW authenticates depends on DB2 instance configuration. With
default configuration it is based on operating system users and
passwords on DB2 server. But also you can write your authentication
plugin (GSS-API), which for example positively authenticate only users
who are connecting from certain application. The same users might not
be authenticated, when connecting from CLP. There is set of articles on
ibm.com/developerworks describing DB2/LUW authentication.
Authentications plugins are used in special cases, so probably not in
your case.

-- Artur Wronski




Report this thread to moderator Post Follow-up to this message
Old Post
Frank Swarbrick
09-28-06 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.