16.3. slapi_acl_verify_aci_syntax()

Description

Determines whether the access control items (ACIs) on an entry are valid.

Syntax

 

#include "slapi-plugin.h"
int slapi_acl_verify_aci_syntax (Slapi_Entry *e, char **errbuf);
Parameters

This function takes the following parameters:

e Entry for which you want to check the ACIs.
errbuf Pointer to the error message returned if the ACI syntax is invalid.
Returns

This function returns one of the following values:

  • 0 if successful.
  • -1 if an error occurs.
Memory Concerns

You must free the errbuf buffer by calling slapi_ch_free() when you are finished using the error message.

See Also

slapi_ch_free()