]> git.sur5r.net Git - openldap/commitdiff
Add SLAPI_X_GROUP_TARGET_ENTRY so that group plugin can use target entry
authorLuke Howard <lukeh@openldap.org>
Thu, 26 Aug 2004 04:24:29 +0000 (04:24 +0000)
committerLuke Howard <lukeh@openldap.org>
Thu, 26 Aug 2004 04:24:29 +0000 (04:24 +0000)
servers/slapd/backend.c
servers/slapd/slapi/slapi.h
servers/slapd/slapi/slapi_pblock.c

index d5cb3d77d57ddef935fea84dd20a5feea5a657d6..a9b07536edab6e2ee39cee8d326858222ecdbbad 100644 (file)
@@ -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 )
index d5e19d57192d77c57635fbbb79998334ec4bac04..08f0ce932cf362a0da64be519a344de7e18a4567 100644 (file)
@@ -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
 
index 446f62e3ce8902bcd28a959b47cbff1679632cc6..9df6d213a126432727dd689cb8d042dea08faa3b 100644 (file)
@@ -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;