Browse Source

Resolves: 214463
Summary: Corrected ACI checking for userPassword during an add operation.

Nathan Kinder 19 years ago
parent
commit
cf5f003d83
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ldap/servers/slapd/add.c

+ 2 - 2
ldap/servers/slapd/add.c

@@ -484,9 +484,9 @@ static void op_shared_add (Slapi_PBlock *pb)
 
 			/* Check ACI before checking password syntax */
 			if ( (err = slapi_access_allowed(pb, e, SLAPI_USERPWD_ATTR, NULL,
-                                     SLAPI_ACL_WRITE)) != LDAP_SUCCESS) {
+                                     SLAPI_ACL_ADD)) != LDAP_SUCCESS) {
                                 send_ldap_result(pb, err, NULL,
-                                              "Insufficient 'write' privilege to the "
+                                              "Insufficient 'add' privilege to the "
                                               "'userPassword' attribute", 0, NULL);
                                 goto done;
 			}