473,671 Members | 2,335 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 1797
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.e ye-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***@attgloba l.net> a écrit dans le message de
news:25******** *************** ***@posting.goo gle.com...
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
14929
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) { document.images.src = eval("mt" +menu+ ".src") } alert("imgOff_hidemenu"); hideMenu=setTimeout('Hide(menu,num)',500);
16
4437
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 href="lemurs.html">Lemurs</a></li> <li><a href="chameleons.html">Chameleons</a></li> </ul> <ul>
0
1702
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 teamdba@scotdb.com. We have tried to put together an interesting agenda which will give a useful day to both LUW and z/OS users. While traditionally our group has been "mainframe oriented", over the last year or so we have managed to build up a good LUW...
8
4893
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 user's Name property in the WindowsPrincipal's IIdentity interface. Where can I find the role that the user is assigned for the current login? I only want the one role which is assigned for the current user, not all of
7
2561
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 server. Does anyone know of such a tool from IBM or another vendor? Thanks. Lew
4
3262
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 DATE" On LUW, the constraint compiles - I insert a row and the date value is inserted with the correct default.
3
5713
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 I am finding are for Z/OS, which I am completely ignorant of. I am using only Java and JDBC in my applications. No static SQL.
2
5853
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
3293
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 this kind of information? I've google around a bit, and searched the db2 docs without much success so far? Is it at all possible, what restrictions apply for such a setup, etc is the kind of questions I would like to find info about. Thanx in...
0
8473
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8911
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7428
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5692
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4222
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.