mldap_modify_ex
| Listing Directory Functions (mldap) |
Modifies an entry's attribute value for a specific session.
int mldap_modify_ex( MLDAP *pldap, char *transaction, char *dn, <List of Attributes>, LAST );
| pldap | An LDAP session identifier |
| transaction | A transaction name for this step. To instruct VuGen not to create a transaction for this step, use a NULL string, "". |
| dn | A Distinguished Name entry. Use the following format:
"DN=RDN1, RDN2,"... |
| List of Attributes | DN entry attributes and values. |
| LAST | A marker indicating the end of the argument list. |
The mldap_modify_ex function adds an entry to the LDAP directory for a specific session.
This function is for use with multiple sessions. For global sessions, use the mldap_modify function, which leaves out the session identifier.
Return Values
If this function succeeds, it returns E_OK. Otherwise, it returns a negative value.
Parameterization
The following argument(s) can be parameterized with standard parameterization: dn
Example
In the following example, the mldap_modify_ex function changes the name attribute to Jane.
mldap_modify_ex(pldap, "LDAP Modify", "DN=cn=Sally R. Jones,OU=Sales,DC=TECHNO,DC=com", "AttrName=name", // Name of attribute "AttrValue=Jane", // New Value LAST );

