My Oracle Support Banner

OUD11g/12c - ACI 'targetattr' Not Working as Expected (Doc ID 2105059.1)

Last updated on DECEMBER 14, 2022

Applies to:

Oracle Unified Directory - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms

Create a custom ACI to restrict an account to read only certain attributes of the users in ODSM.   However it doesn't return the entry as expected.

The issue can be reproduced with the following steps:
1. In ODSM
2. Select Security Tab
3. Expand the Directory ACLs element.
4. Click on create new ACI icon
Set the fields as follow

Detail view-->
Targets-->

Type                        Operator        Target
Target Attribute     = (Equals)      mail

Permissions-->
Access to:
Allow: Read, Search
   Bind Rules
    userdn="ldap:///uid=<USER.0>, ou=People, dc=<SUFFIX_DN>"


Expected behavior is to be able to restrict a particular account to read only certain attributes of the users

1-Reviewing ACI with ldapsearch

$ ./ldapsearch -h <HOSTNAME> -p <PORT> -D "cn=<DS_ADMIN>" -j <PWD_FILE> -b "dc=<SUFFIX_DN>" "aci=*" aci
dn: ou=People,dc=<SUFFIX_DN>
aci: (targetattr = "mail") (version 3.0; acl "testACI"; allow (read,search) userdn = "ldap:///uid=<USER.0>,ou=People,dc=<SUFFIX_DN>";)

2-Testing and getting no results using "<USER.0>"

$ ./ldapsearch -h <HOSTNAME> -p <PORT> -D "uid=<USER.0>,ou=People,dc=<SUFFIX_DN>" -j <PWD_FILE> -b "uid=<USER.1>,ou=People,dc=<SUFFIX_DN>" -s base "(objectclass=*)" mail

3-Changing to admin user "cn=<DS_ADMIN>" getting results

$ ./ldapsearch -h <HOSTNAME> -p <PORT> -D "cn=<DS_ADMIN>" -j <PWD_FILE> -b "uid=<USER.1>,ou=People,dc=<SUFFIX_DN>" -s base "(objectclass=*)" mail
dn: uid=<USER.1>,ou=People,dc=<SUFFIX_DN>
mail: <USER.1>@<DOMAIN>

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.