]> git.sur5r.net Git - openldap/commitdiff
Add SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE for exposing o_no_subordinate_glue
authorLuke Howard <lukeh@openldap.org>
Sun, 11 Jun 2006 06:50:53 +0000 (06:50 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 11 Jun 2006 06:50:53 +0000 (06:50 +0000)
include/slapi-plugin.h
servers/slapd/slapi/slapi_pblock.c

index 6b0a60ba80ee59aa05c625996176a1a108dd6a18..8a30465aef9fce601ec1a38ab85738391ae1d41b 100644 (file)
@@ -531,6 +531,7 @@ int slapi_x_backend_get_flags( const Slapi_Backend *be, unsigned long *flags );
 #define SLAPI_X_MANAGEDIT                      1306
 #define SLAPI_X_OPERATION_NO_SCHEMA_CHECK      1307
 #define SLAPI_X_ADD_STRUCTURAL_CLASS           1308
+#define SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE  1309
 
 /*  Authentication types */
 #define SLAPD_AUTH_NONE   "none"
index 1b008017429d74db52d8dc2555287db8169c685b..f8ffd04ccb20b72a1f52b982f1cf531b018202ab 100644 (file)
@@ -493,6 +493,10 @@ pblock_get( Slapi_PBlock *pb, int param, void **value )
                        rc = PBLOCK_ERROR;
                }
                break;
+       case SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE:
+               PBLOCK_ASSERT_OP( pb, 0 );
+               *((ber_tag_t *)value) = pb->pb_op->o_no_subordinate_glue;
+               break;
        case SLAPI_REQCONTROLS:
                PBLOCK_ASSERT_OP( pb, 0 );
                *((LDAPControl ***)value) = pb->pb_op->o_ctrls;
@@ -873,6 +877,10 @@ pblock_set( Slapi_PBlock *pb, int param, void *value )
                PBLOCK_ASSERT_OP( pb, 0 );
                pb->pb_op->o_no_schema_check = *((int *)value);
                break;
+       case SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE:
+               PBLOCK_ASSERT_OP( pb, 0 );
+               pb->pb_op->o_no_subordinate_glue = *((int *)value);
+               break;
        case SLAPI_REQCONTROLS:
                PBLOCK_ASSERT_OP( pb, 0 );
                pb->pb_op->o_ctrls = (LDAPControl **)value;