39.28. slapi_sdn_scope_test()
This function carries out a simple test to check whether the DN passed in the dn parameter is actually in the scope of the base DN according to the values passed into the scope and base parameters.
#include "slapi-plugin.h" int slapi_sdn_scope_test( const Slapi_DN *dn, const Slapi_DN *base, int scope );
This function takes the following parameters:
|
dn
| The DN of the entry subject of scope test. |
|
base
| The base DN against which dn is going to be tested. |
|
scope
| The scope tested. This parameter can take one of the following levels:
|
This function returns non-zero if dn matches the scoping criteria given by base and scope.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.