Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 161

Table of Contents

Advertisement

mod_bvalues
The following section of code sets up an
address of a user's entry to "
Code Example 13-1
Slapi_PBlock *rcpb;
LDAPMod attribute1;
LDAPMod *list_of_attrs[2];
char *mail_values[] = { "bab@example.com", NULL };
char *dn;
...
/* Identify the entry that you want changed */
dn = "cn=Barbara Jensen, ou=Product Development, o=Ace Industry,
c=US";
/* Specify that you want to replace the value of an attribute */
attribute1.mod_op = LDAP_MOD_REPLACE;
/* Specify that you want to change the value of the mail attribute
*/
attribute1.mod_type = "mail";
/* Specify the new value of the mail attribute */
attribute1.mod_values = mail_values;
/* Add the change to the list of attributes that you want changed
*/
list_of_attrs[0] = &attribute_change;
list_of_attrs[1] = NULL;
/* Update the entry with the change */
rcpb = slapi_modify_internal( dn, list_of_attrs, NULL, 1 );
...
mrFilterMatchFn
mrFilterMatchFn
This function is called by the server when processing a search operation. The server
calls this function for each potential candidate entry that might match a search
filter.
Pointer to a NULL-terminated array of berval structures for the
attribute.
bab@example.com
Sample Code for Changing the Email. Address of a User's Entry
specifies the prototype for a "filter matching" callback function.
Summary of Data Types and Structures
structure to change the email
LDAPMod
":
Chapter 13
Data Type and Structure Reference
161

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents