Checks if the entry pointed to by entry_to_check contains the role indicated by role_dn.
#include "slapi-plugin.h" int slapi_role_check(Slapi_Entry *entry_to_check, Slapi_DN *role_dn,int *present);
This function takes the following parameters:
The entry in which the presence of a role is to be checked.
The DN of the role for which to check.
Pointer to an integer where the result is placed. For results:
non 0 means present
0 means not present
This function returns one of the following values:
0 for success if role_dn is present in entry_to_check and present is set to non-zero. Otherwise it is 0.
non-zero (error condition) if the presence of the role is undetermined.