Quote:
Originally Posted by grofaty
I defined SYSADM_GROUP dbm cfg settings to NULL. I tried to specify LDAP group 'cn=mygroup,ou=groups,ou=entries' as SYSADM_GROUP, but got error that comma is not permitted character for group name.
Quote:
Originally Posted by n_i
What you use for the user/group authorization ID depends on how you have configured the LDAP plugin. For example, "GROUPNAME_ATTRIBUTE = cn" says that only CN is used for the group name, while "GROUP_BASEDN = o=ibm" determines the CN resolution.
|
|
Now I have solved this problem, I defined:
GROUP_BASEDN = ou=groups,ou=entries
GROUPNAME_ATTRIBUTE = cn
db2 UPDATE DBM CFG USING SYSADM_GROUP mygroup
Quote:
Originally Posted by grofaty
When I connect to database using LDAP authentication and executing select on tables I get restriction error, because this new LDAP user has no privilege on database. I also can't grant any privilege to this new DB2/LDAP user, because instance owner user which is defined on operating system level is not defined in LDAP (our LDAP administrator does not allow any 'dummy' users like db2inst1 and alike to be defined on LDAP - every member in LDAP has to have human userid).
|
From web page
LDAP-based authentication and group lookup support: "When you use the LDAP plugin modules, all users associated with the database must be defined on the LDAP server. This includes both the DB2 instance owner ID as well as the fenced user. These users are typically defined in the operating system, but must also be defined in LDAP."
Like I see now I need to define db2inst1 user to LDAP, otherwise it will be impossible to execute instance like actions like drop database (for databases created with db2inst1 user) and other similar instance like actions.
I see we have two options (using LDAP):
1. create dummy user "db2inst1" to LDAP (I need to convince LDAP administrator, but it is going to be very hard),
2. write our own DB2 authentication program that uses two authentications operating system and LDAP authentication. Example search for LDAP user and if it does not exist in LDAP then search operating system users (in case of db2inst1) - I don't really like this idea, most probably will have some unpredictable problems.
Is there any other suggestion?