Thank you Rob ^^ it works !<br><br><div class="gmail_quote">2010/7/12 Rob Crittenden <span dir="ltr"><<a href="mailto:rcritten@redhat.com">rcritten@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">ALAHYANE Rachid wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I want to add an ACI to the ldap server with the aci-add and i do not how can I do it ?<br>
<br>
The aci to add is the following :<br>
<br>
<br>
(targetattr = "friends,blockedfriends,givenName || sn || cn || displayName || title || initials || loginShell || gecos || homePhone || mobile || pager || facsimileTelephoneNumber || telephoneNumber || street || roomNumber || l || st || postalCode || manager || secretary || description || carLicense || labeledURI || inetUserHTTPURL || seeAlso || employeeType || businessCategory || ou")(version 3.0;acl "My Self service";allow (write) userdn = "ldap:///self";)<br>


</blockquote>
<br></div>
The aci plugin can't handle self bind rules yet (I created ticket #80 to track this).<br>
<br>
You can still add this with ldapmodify though.<br>
<br>
First you need to replace the comma's in your targetattr with ||, then you should be able to add it with something like:<br>
<br>
ldapmodify -x -D 'cn=directory manager' -W<br>
dn: dc=example,dc=com<br>
changetype: modify<br>
add: aci<br>
aci: <your_aci><br>
<br>
^D<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Note that I added some new target attributes (also added on the ldap schema). The last time, I tried to modify an ACI, the aci entry was deleted. It is for this reason that i try to add a new one.<br>
</blockquote>
<br></div>
What the aci plugin does in the modify case is delete the old aci and add a new one. The problem with the plugin wasn't shown until after the deletion, hence any aci you tried to modify you basically just deleted.<br>

<font color="#888888">
<br>
rob<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Meilleures salutations / Best Regards<br>Rachid ALAHYANE<br><br>