]> git.sur5r.net Git - openldap/commitdiff
Register ManageDSAit control
authorHoward Chu <hyc@openldap.org>
Mon, 28 Mar 2005 10:23:04 +0000 (10:23 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 28 Mar 2005 10:23:04 +0000 (10:23 +0000)
servers/slapd/bconfig.c

index ec7900b3ffe7aa275bbd6530dacb09f232e01a2e..ba1dbe39f6d508952ff992af79f40d6d02f80242 100644 (file)
@@ -3384,6 +3384,14 @@ out:
        return rs->sr_err;
 }
 
+/* Modify rules:
+ *  for single-valued attributes, should just use REPLACE.
+ *    any received DELETE/ADD on a single-valued attr will
+ *      be checked (if a DEL value is provided) and then
+ *      rewritten as a REPLACE.
+ *    any DELETE received without a corresponding ADD will be
+ *      rejected with LDAP_CONSTRAINT_VIOLATION.
+ */
 static int
 config_back_modify( Operation *op, SlapReply *rs )
 {
@@ -3991,6 +3999,12 @@ config_back_initialize( BackendInfo *bi )
        ConfigTable *ct = config_back_cf_table;
        char *argv[4];
        int i;
+       static char *controls[] = {
+               LDAP_CONTROL_MANAGEDSAIT,
+               NULL
+       };
+
+       bi->bi_controls = controls;
 
        bi->bi_open = 0;
        bi->bi_close = 0;