ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / LDAP functions
  • Modifying an existing object on an LDAP server
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
LDAPDeleteAttributeValue (Function)
In french: LDAPSupprimeValeurAttribut
Deletes a value of a specified attribute.
Example
// Supprimer une valeur donnée 
// La lecture a déjà été réalisée sur le serveur LDAP
// La valeur à supprimer est dans la chaîne sValeurASupprimer
LDAPStartModify("NomSession")
LDAPDeleteAttributeValue("NomSession", "NomAttribut", sValeurASupprimer)
LDAPValidateModify("NomSession", "DN")
// Supprimer plusieurs valeurs données
// La lecture a déjà été réalisée sur le serveur LDAP
// Les valeurs à supprimer sont dans les chaînes sValeurASupprimer1 et sValeurASupprimer2
LDAPStartModify("NomSession")
LDAPDeleteAttributeValue("NomSession", "NomAttribut", sValeurASupprimer1)
LDAPDeleteAttributeValue("NomSession", "NomAttribut", sValeurASupprimer2)
LDAPValidateModify ("NomSession", "DN")
Syntax
<Result> = LDAPDeleteAttributeValue(<LDAP session> , <Attribute name> , <Attribute value>)
<Result>: Boolean
  • True if deleted successfully,
  • False otherwise. ErrorInfo returns more details about the error.
The deletion 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.
<Attribute value>: ANSI character string
Value of attribute to delete.
Remarks

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 object modification speed, modifications are defined locally: a single communication with the server is established when the modification is validated. The steps are:
  1. Start modification (LDAPStartModify)
  2. Modification operations:
  3. Validate the modifications on the server (LDAPValidateModify). The modifications are performed on the server according to the order used in the WLanguage code.
Please note As modification operations are performed locally before being transferred to the server, it is essential to respect the logical order of modifications (for example, it will not be possible to modify an attribute deleted by the previous line of code).
Related Examples:
The LDAP functions 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, ...
Component: wd300com.dll
See also
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help