Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 18 Functions

ldap_modify_ext_s()

Modifies an existing entry in the directory synchronously.

Syntax

#include <ldap.h>
int ldap_modify_ext_s( LDAP *ld, const char *dn, LDAPMod **mods,
   LDAPControl **serverctrls, LDAPControl **clientctrls );

Parameters

This function has the following parameters:

ld

Connection handle, which is a pointer to an LDAP structure containing information about the connection to the LDAP server.

dn

Distinguished name (DN) of the entry to modify.

mods

Pointer to a NULL-terminated array of pointers to LDAPMod structures for the attributes you want modified.

serverctrls

Pointer to an array of LDAPControl structures representing LDAP server controls that apply to this LDAP operation. If you do not want to pass any server controls, specify NULL for this argument.

clientctrls

Pointer to an array of LDAPControl structures representing LDAP client controls that apply to this LDAP operation. If you do not want to pass any client controls, specify NULL for this argument.

Returns

One of the following values:

The following result codes can be returned by the Netscape Directory Server when processing an LDAP modify request. Other LDAP servers may send these result codes under different circumstances or may send different result codes back to your LDAP client.

Note that the Netscape Directory Server may send other result codes in addition to the codes described here (for example, the server may have loaded a custom plug-in that returns other result codes).

Description

The ldap_modify_ext_s() modifies an entry in the directory synchronously.

This function is a new version of the ldap_modify_s() function. If you are writing a new LDAP client, you should call this function instead of ldap_modify_s().

To make changes to an entry to the directory, you need to specify the following information:

ldap_modify_ext_s() is a synchronous function, which directly returns the results of the operation. If you want to perform other operations while waiting for the results of this operation, call the asynchronous function ldap_modify_ext() instead. (For more information on asynchronous and synchronous functions, see "Calling Synchronous and Asynchronous Functions" on page 80.)

For more information on modifying entries in the directory, see "Modifying an Entry" on page 188.

Example

See the example under "Example: Modifying an Entry in the Directory (Synchronous)" on page 198.

See Also

ldap_modify_ext(), LDAPMod.


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:06:23