|
|
|
|
- Differences between LDAPReplaceAttribute and LDAPReplaceAttributeValue
- Modifying an existing object on an LDAP server
LDAPReplaceAttributeValue (Function) In french: LDAPRemplaceValeurAttribut Replaces a specific value of an attribute by a new value. // Modifies a specific value of an attribute // sValue2 must be replaced with sNewValue LDAPStartModify("SessionName") LDAPReplaceAttributeValue("SessionName", "AttributeName", sValue2, sNewValue) LDAPValidateModify("SessionName", "DN")
Syntax
<Result> = LDAPReplaceAttributeValue(<LDAP session> , <Attribute name> , <Former attribute value> , <New attribute value>)
<Result>: Boolean - True if the modification was performed,
- False otherwise. ErrorInfo returns more details about the error. The modification will be performed during the call to LDAPValidateModify.
<LDAP session>: Character string Name of LDAP session used. <Attribute name>: Character string Name of attribute to use. <Former attribute value>: ANSI character string Value of the attribute that must be replaced. <New attribute value>: ANSI character string New value of the attribute that replaces all the <Former Attribute Values>. Remarks Differences between LDAPReplaceAttribute and LDAPReplaceAttributeValue LDAPReplaceAttribute is used to replace all the values of an attribute by a single value. A multi-valued attribute (several values for this attribute) will become a single-valued attribute (a single value for this attribute). LDAPReplaceAttributeValue replaces the specific value of an attribute by a new value. A multi-valued attribute remains a multi-valued attribute. Modifying an existing object on an LDAP server To modify an existing object in an LDAP server, you must define the different modifications to perform. To optimize the modification speed of objects, the modifications are defined locally: a single communication is established with the server when validating the modification. The steps are: - Start modification (LDAPStartModify)
- Modification operations:
- Validate the modifications on the server (LDAPValidateModify). The modifications are performed on the server according to the order used in the WLanguage code.
Related Examples:
|
Unit examples (WINDEV): The LDAP functions
[ + ] Using the WLanguage LDAP functions. These functions are used to interact with the LDAP data, to view the content of any LDAP directory and to modify the LDAP data: LDAPConnect, LDAPListChildren, LDAPAdAttribute, LDAPDeleteAttributeValue, ...
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|