![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 396](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642396.webp)
Functions for LDAPMod Manipulation
396
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
Returns
This function returns one of the following values:
•
1 if the
Slapi_Mod
is valid.
•
0 if the
Slapi_Mod
is not valid.
Description
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
,
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.
slapi_mod_new()
Allocates a new
Slapi_Mod
structure.
Syntax
#include “slapi-plugin.h”
Slapi_Mod* slapi_mod_new( void );
Parameters
This function takes no parameters.
Returns
This function returns a pointer to an allocated, uninitialized
Slapi_Mod
.
Description
This function allocates a new uninitialized
Slapi_Mod
. Use this function when you
need to a
Slapi_Mod
allocated from the heap, rather than from the stack.
See Also
slapi_mod_free()
slapi_mod_remove_value()
Removes the value at the current
Slapi_Mod
iterator position.
Syntax
#include “slapi-plugin.h”
void slapi_mod_remove_value(Slapi_Mod *smod);
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...