473,396 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Sep 21 '06 #1
2 1989
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

Sep 24 '06 #2
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
>>Artur<ar***********@gmail.com09/24/06 1:30 PM >>>
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

Sep 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
9
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
0
by: Albertas | last post by:
What I'm doing wrong that I can't make my authentication to work. Here is the situation: I'm hosting a Web Service from a Windows forms application, using .NET Framework 3.0 WCF. And I want to...
18
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found...
2
by: Frank Swarbrick | last post by:
I am trying to understand "client authentication" works. My environment is DB2/UDB LUW 8.2 on zSeries SLES9 as the database server and DB2 for VSE 7.4 as the client. We currently have DB2/LUW set...
5
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.