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

slapi_vattr_is_registered()

Check whether an attribute may be virtual.

Syntax

#include "slapi-plugin.h"
int slapi_vattr_is_registered(const char *attrtype,
    const char *scopendn);

Parameters

This function takes the following parameters:

attrtype

Attribute type to check

scopendn

Base of the scope to check

Description

This function checks whether a virtual attribute service is registered for the attribute type in the scope specified.

The fact that a virtual attribute service is registered for an attribute type does not guarantee that the service can currently provide a value.

Returns

This functions returns 1 if the attribute may be virtual in the scope specified. Otherwise, it returns 0.