473,513 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 UDB LUW: values current groups?

Once connected, a user has an id and belongs to a number of groups,
this will be used for checking certain classes of SQL requests.

'values current user' will return the user.

How to retrieve the group ids? ('values current groups' fails, not
part of special registers).

Bernard Dhooghe
Nov 12 '05 #1
3 1789
Bernard,

Groups are not controlled by DB2. If there is a way to get that
information through DB2 it would likely be a C-API. But it may be you
need to query your OS.

Cheers
Serge
Nov 12 '05 #2
Serge Rielau <sr*****@ca.eye-bee-em.com> wrote in message news:<41********@news3.prserv.net>...
Bernard,

Groups are not controlled by DB2. If there is a way to get that
information through DB2 it would likely be a C-API. But it may be you
need to query your OS.

Cheers
Serge


Hello Serge,

I understand that users and groups are maintained outside DB2 UDB.

But once connected, who am I when SQL requests will be checked for
privileges?

I can partially know who I am (current user), but the groups I'm in at
that very connection moment will also influence sql access rights.
This makes even more sense with version 8.2 now that group settings
can be controlled by a plug-in.

How will I (or maybe: an auditor) control/validate on front-end side
the back-end id settings for the connection if I can not query the
"current groups" in SQL?
Bernard Dhooghe
Nov 12 '05 #3
Well, authentication is at the os level and authorization is at the db
level.

The information may be somewhere in those catalog tables.
(not all auths will show because of implicit auth may apply in certain
cases.)

COLAUTH SYSCAT
DBAUTH SYSCAT
INDEXAUTH SYSCAT
LIBRARYAUTH SYSCAT
PACKAGEAUTH SYSCAT
PASSTHRUAUTH SYSCAT
ROUTINEAUTH SYSCAT
SCHEMAAUTH SYSCAT
SEQUENCEAUTH SYSCAT
TABAUTH SYSCAT
TBSPACEAUTH SYSCAT
XMLOBJECTAUTH SYSCAT
and
db2 get authorizations and related api's.

I didn't get into gss plugins yet.

I'd have to check whther there is any trace of groups in db2trace's output.

PM

"Bernard Dhooghe" <no***@attglobal.net> a écrit dans le message de
news:25**************************@posting.google.c om...
Once connected, a user has an id and belongs to a number of groups,
this will be used for checking certain classes of SQL requests.

'values current user' will return the user.

How to retrieve the group ids? ('values current groups' fails, not
part of special registers).

Bernard Dhooghe

Nov 12 '05 #4

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

Similar topics

3
14910
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
16
4412
by: michael | last post by:
Is it possible to get all href URLs contained in a unordered list and place them in an array? Or in fact two different arrays, differently named one for each <ul> group? <ul> <li><a...
0
1698
by: Philip Nelson | last post by:
Our next meeting will take place shortly and the "official" announcement is attached below. If you would like more information about our group then don't hesitate to drop me a line on...
8
4883
by: Mark White | last post by:
Hey everyone I'm having a great deal of problems finding this information through google and yahoo, so I turn to you on this. I have a Windows app running on XP. I am able to caputre the...
7
2551
by: Lew | last post by:
Hi, I'm looking for a tool that can capture all the sql transactions for a period of time (24 hours or so ) from our production server and replay it exactly as entered on our performance tuning...
4
3257
by: BD | last post by:
Hi, all.. I'm creating a table with one column of type DATE, non nullable, with a default of the current date. The column syntax I'm using is "THIS_DATE_1 DATE NOT NULL DEFAULT CURRENT...
3
5689
by: aj | last post by:
DB2 LUW 8.1 fixpak 14 Red Hat EL AS 4.4 I'm trying to diagnose some nocturnal CPU pressure, and am trying to understand the dynamic statement cache as it applies to LUW. The only doc/redbooks...
2
5818
by: F | last post by:
Is DB2 on z/OS same as DB2 on LUW ? Will my DB2 DBA on one environment have to retrain again on the other ? Thanks
6
3290
by: Lennart | last post by:
I'm trying to read up on the possibility to migrate a db2 V9.5 server to 64 bit, and continue running 32 bit application servers (via db2 runtime client, or otherwise). Does anyone have links to...
0
7161
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
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
5686
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,...
1
5089
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.