[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: overlay question
You can also use SLAPI for ACL plugins. In the plugin initialization
function, you should register a function for
SLAPI_PLUGIN_ACL_ALLOW_ACCESS, eg:
static int spocp_access_allowed(Slapi_Pblock *pb,
Slapi_Entry *entry,
const char *attribute,
struct berval *berval,
int access,
void *state)
{
// return 0 for access denied, 1 for access granted
}
int spocp_preop_init(Slapi_PBlock *pb)
{
return slapi_pblock_set(pb, SLAPI_PLUGIN_ACL_ALLOW_ACCESS,
(void *)spocp_access_allowed);
}
-- Luke