]> git.sur5r.net Git - openldap/commitdiff
proxy RFC4525 increment; bail out in case of unsupported extension (ITS#5912)
authorPierangelo Masarati <ando@openldap.org>
Thu, 29 Jan 2009 20:30:19 +0000 (20:30 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 29 Jan 2009 20:30:19 +0000 (20:30 +0000)
servers/slapd/back-ldap/init.c
servers/slapd/back-meta/init.c
servers/slapd/modify.c

index 93df94c28ec7a02899d39e806e358ec83518c343..6c9979bd508e2781e2b8a763ca2847d95332628b 100644 (file)
@@ -62,7 +62,10 @@ ldap_back_initialize( BackendInfo *bi )
                 * and the entryTtl attribute */
                SLAP_BFLAG_DYNAMIC |
 #endif /* LDAP_DYNAMIC_OBJECTS */
-               0;
+
+               /* back-ldap recognizes RFC4525 increment;
+                * let the remote server complain, if needed (ITS#5912) */
+               SLAP_BFLAG_INCREMENT;
 
        bi->bi_open = ldap_back_open;
        bi->bi_config = 0;
index 4d7d92195ecf6437e0e82e7d73ca2b43d31d9a59..ab9df5687be2730d564b0ce2830640fc8c7241b9 100644 (file)
@@ -53,7 +53,10 @@ meta_back_initialize(
                SLAP_BFLAG_DYNAMIC |
 #endif /* LDAP_DYNAMIC_OBJECTS */
 #endif
-               0;
+
+               /* back-meta recognizes RFC4525 increment;
+                * let the remote server complain, if needed (ITS#5912) */
+               SLAP_BFLAG_INCREMENT;
 
        bi->bi_open = meta_back_open;
        bi->bi_config = 0;
index 115b4705ee9c8a9875c78b5a35629656a6e53467..7adc30469c34ceeb1d5b24b6cc94f7b0a05f3299 100644 (file)
@@ -268,6 +268,7 @@ fe_op_modify( Operation *op, SlapReply *rs )
        if ( op->orm_increment && !SLAP_INCREMENT( op->o_bd ) ) {
                send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,
                        "modify/increment not supported in context" );
+               goto cleanup;
        }
 
        /*