Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_role_get_scope()

Determine the scope of a role.

Syntax

#include "slapi-plugin.h"
int slapi_role_get_scope(Slapi_Entry *role_entry,
    Slapi_DN ***scope_dn, int *nb_scope);

Parameters

This function takes the following parameters:

role_entry

Entry defining the role

scope_dn

Set by the callback to the Distinguished Name of the entry at the base of the scope

nb_scope

Set by the callback to a value such as LDAP_SCOPE_BASE, LDAP_SCOPE_ONELEVEL, or LDAP_SCOPE_SUBTREE

Description

This function triggers a callback to evaluate the scope of a role.

Memory Concerns

Directory Server does not free or copy the parameters passed to this function.

See Also

roles_get_scope_fn_type

slapi_register_role_get_scope()