Synchronously modifies specified attributes of an entry on an LDAP server, using LDAP client or server controls.
#include <ldap.h>
int ldap_modify_ext_s (
LDAP *ld,
const char *dn,
LDAPMod **mods,
LDAPControl **serverctrls,
LDAPControl **clientctrls);
(IN) Points to the handle for the LDAP session.
(IN) Points to the distinguished name of the entry to modify.
(IN) Points to a NULL-terminated array of pointers to the modifications to make to the entry. Each LDAPMod structure contains the modifications for one attribute.
(IN) Points to an array of LDAPControl structures that list the server controls to use with the modify operation. Use NULL to specify no server controls.
(IN) Points to an array of LDAPControl structures that list the client controls to use with the modify operation. Use NULL to specify no client controls.
|
0x00 |
LDAP_SUCCESS |
|
Non-zero |
Failure. For a complete list, see |
|
0x53 |
LDAP_ENCODING_ERROR |
|
0x5A |
LDAP_NO_MEMORY |
Use the ldap_rename or ldap_rename_s function to modify the entry's name.
eDirectory does not currently support any server-side controls to use with modify operations.
For sample code, see modattrs.c.