From: Luke Howard Date: Thu, 26 Aug 2004 04:24:29 +0000 (+0000) Subject: Add SLAPI_X_GROUP_TARGET_ENTRY so that group plugin can use target entry X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~636 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f6996c8bfe15e2df0f07f4dca2665f04cb99a0b;p=openldap Add SLAPI_X_GROUP_TARGET_ENTRY so that group plugin can use target entry --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index d5cb3d77d5..a9b07536ed 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -1618,6 +1618,7 @@ static void init_group_pblock( Operation *op, Entry *target, slapi_pblock_set( op->o_pb, SLAPI_X_GROUP_ENTRY, (void *)e ); slapi_pblock_set( op->o_pb, SLAPI_X_GROUP_OPERATION_DN, (void *)op_ndn->bv_val ); slapi_pblock_set( op->o_pb, SLAPI_X_GROUP_ATTRIBUTE, (void *)group_at->ad_cname.bv_val ); + slapi_pblock_set( op->o_pb, SLAPI_X_GROUP_TARGET_ENTRY, (void *)target ); } static int call_group_preop_plugins( Operation *op ) diff --git a/servers/slapd/slapi/slapi.h b/servers/slapd/slapi/slapi.h index d5e19d5719..08f0ce932c 100644 --- a/servers/slapd/slapi/slapi.h +++ b/servers/slapd/slapi/slapi.h @@ -437,6 +437,7 @@ extern Backend * slapi_cl_get_be(char *dn); #define SLAPI_X_GROUP_ENTRY 1250 /* e */ #define SLAPI_X_GROUP_ATTRIBUTE 1251 /* group_at */ #define SLAPI_X_GROUP_OPERATION_DN 1252 /* op_ndn */ +#define SLAPI_X_GROUP_TARGET_ENTRY 1253 /* target */ #define SLAPI_MANAGEDSAIT 1000 diff --git a/servers/slapd/slapi/slapi_pblock.c b/servers/slapd/slapi/slapi_pblock.c index 446f62e3ce..9df6d213a1 100644 --- a/servers/slapd/slapi/slapi_pblock.c +++ b/servers/slapd/slapi/slapi_pblock.c @@ -218,6 +218,7 @@ isOkNetscapeParam( int param ) case SLAPI_X_GROUP_ENTRY: case SLAPI_X_GROUP_ATTRIBUTE: case SLAPI_X_GROUP_OPERATION_DN: + case SLAPI_X_GROUP_TARGET_ENTRY: return LDAP_SUCCESS; default: return INVALID_PARAM;