February 2000
Intermediate to advanced
720 pages
15h 26m
English
In Netscape Directory Server, since ACIs are defined in the aci attribute of entries, you can modify the ACIs for an entry by adding, modifying, or deleting values from the aci attribute.
The following section of code illustrates how you can use the LDAPConnection.modify method to add an ACI to an entry.
String ENTRYDN = "ou=People, o=Airius.com"; String ACI = "(target =\"ldap:///ou=People,o=airius.com\")"+ "(targetattr =\"roomNumber\")" + "(targetfilter =\"(ou=Product Development)\")" + "(version 3.0;" + "acl \"Allow all to modify room number\";" + "allow (write) userdn = \"ldap:///all\";)"; LDAPConnection ld = new LDAPConnection(); try { // Connect to server ld.connect( 3, "localhost", 389, "cn=directory ...Read now
Unlock full access