From 71827d002de71fe7ff6a88f0ccfa9b71f8240935 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 11 Jun 2006 06:50:53 +0000 Subject: [PATCH] Add SLAPI_X_OPERATION_NO_SUBORDINATE_GLUE for exposing o_no_subordinate_glue --- include/slapi-plugin.h | 1 + servers/slapd/slapi/slapi_pblock.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/include/slapi-plugin.h b/include/slapi-plugin.h index 6b0a60ba80..8a30465aef 100644 --- a/include/slapi-plugin.h +++ b/include/slapi-plugin.h @@ -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" diff --git a/servers/slapd/slapi/slapi_pblock.c b/servers/slapd/slapi/slapi_pblock.c index 1b00801742..f8ffd04ccb 100644 --- a/servers/slapd/slapi/slapi_pblock.c +++ b/servers/slapd/slapi/slapi_pblock.c @@ -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; -- 2.39.5