33.18. slapi_mod_isvalid()
Use this function to verify that the contents of Slapi_Mod are valid. It is considered valid if the operation type is one of LDAP_MOD_ADD, LDAP_MOD_DELETE, or LDAP_MOD_REPLACE, combined using the bitwise or operator with LDAP_MOD_BYVALUES; the attribute type is not NULL; and there is at least one attribute value for add and replace operations.
#include "slapi-plugin.h" int slapi_mod_isvalid(const Slapi_Mod *mod);
This function takes the following parameter:
|
smod
| Pointer to a Slapi_Mod. |
This function returns one of the following values:
- 1 if the Slapi_Mod is valid.
- 0 if the Slapi_Mod is not valid.

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.