Bug 1034257 - Possible to add non-existent role to user
Summary: Possible to add non-existent role to user
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: Sankar Ramalingam
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 14:01 UTC by Ján Rusnačko
Modified: 2013-12-18 18:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-18 18:06:37 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Ján Rusnačko 2013-11-25 14:01:59 UTC
Description of problem:
In current RHEL 6.4 DS it is possible to add user to role which does not exist.

Version-Release number of selected component (if applicable):
389-ds-base-1.2.11.15-29.el6.x86_64

How reproducible:
always

Steps to Reproduce:
[jrusnack@dhcp-31-42 workspace]$ ldapmodify -a -D "cn=directory manager" -w Secret123 <<EOF
dn: cn=roles testuser3,ou=people,dc=example,dc=com
objectclass: top
objectclass: person
cn: roles testuser
sn: roles testuser
nsRoleDN: ou=invalid    
EOF

adding new entry "cn=roles testuser3,ou=people,dc=example,dc=com"

[jrusnack@dhcp-31-42 workspace]$ ldapsearch -LLL -D "cn=directory manager" -w Secret123 -b "cn=roles testuser3,ou=people,dc=example,dc=com" nsroleDN 
dn: cn=roles testuser3,ou=People,dc=example,dc=com
nsroleDN: ou=invalid

Actual results:
User entry can be added to non-existing role (i.e. there is no managed role entry ou=invalid).

Comment 2 Nathan Kinder 2013-12-18 18:06:37 UTC
This is really a RFE, not a bug.  Just like any other grouping mechanism, you can add a reference to a non-existent group/role.  Even referential integrity doesn't check for ADD or MOD operations by design.

I'd prefer to not implement this unless there is a significant customer request behind it.  Closing as WONTFIX.


Note You need to log in before you can comment on or make changes to this bug.