Hi guys,<br><br>Please see below for my original question.<br><br>I spend a little more time reading "Chapter 6 - Managing Access Control" from the RH Administrator Guide.  At first, I thought it was my placement of ACI that was wrong, but it seems like that's not the case from what I read.  The book stated that "The precedence rule that applies is that ACIs that deny access take precedence over ACIs that allow access."  If my root allows everything and then my leaf denies everything then I don't see why the add operation that I mentioned below should work.
<br><br>Let me clear up a little more in case there's any confusion.  The ou=serviceaccounts and cn=user1 entry is created by the "cn=Directory Manager" user.  In my test, the root (ou=serviceaccounts), I specified an ACI that allows all user to do anything.  In my leaf (cn=user1), I specified an ACI that denies everything for user1 by defining the bind rule as (ldap:///self).
<br><br>When I logged in as user1, I'm able to add entry in the cn=user1 context.  I am not sure why because I thought that user1 shouldn't have any privilege to do anything due to my specified ACI.<br><br>Any idea?  Am I missing some obvious?
<br><br>Thanks!<br><br>David<br><br><div class="gmail_quote">On Dec 7, 2007 6:28 PM, Chun Tat David Chu <<a href="mailto:beyonddc.storage@gmail.com">beyonddc.storage@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi guys,<br><br>I am trying to create an organizational unit and an user with ACI, but it looks like my ACI is not defined correctly.<br>Below is my ldif.<br><br>dn: ou=serviceaccounts,dc=test,dc=example,dc=com<br>changetype: add
<br>objectclass: top<br>objectclass: organizationalunit<br>aci:<br> (targetattr = "*")<br> (version 3.0;<br> acl "default aci for service accounts";<br> allow (all)<br> (userdn="ldap:///anyone")
<br> ;)<br><br>dn: cn=user1,ou=serviceaccounts,dc=test,dc=example,dc=com<br>changetype: add<br>objectclass: top<br>objectclass: person<br>sn: tscei.obs<br>userPassword: testing123<br>description: This is a test<br>aci:<br>

 (targetattr = "*")<br> (version 3.0;<br> acl "user1";<br> deny (all)<br> (userdn="ldap:///self")<br> ;)<br><br>I create an organizational unit that allows all users to modify it, then I create user1 that denies everything.
<br>I then use the below LDIF to perform a LDAP add operation.<br><br>dn: cn=testing123,cn=user1,ou=serviceaccounts,dc=test,dc=example,dc=com<br>changetype: add<br>objectclass: top<br>objectclass: room<br><br>I use this ldapmodify command to perform the add operation
<br>ldapmodify -h hostname -p 1389 -D "cn=user1,ou=serviceaccounts,dc=test,dc=example,dc=com" -w testing123 -f my_test.ldif -x<br><br>The add operation succeeded unexpectedly.  The result that I'm looking for should be not enough privilege to perform add operation.
<br><br>Anyone knows what's wrong with my ACI setup?<br><br>Thanks!<br><font color="#888888"><br>David<br>
</font></blockquote></div><br>