mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Add SLAPI_X_GROUP_TARGET_ENTRY so that group plugin can use target entry
This commit is contained in:
parent
2af6457771
commit
5f6996c8bf
@ -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 )
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user