AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones LDAP
  • Modifying an existing object on an LDAP server
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
LDAPDeleteAttributeValue (Function)
In french: LDAPSupprimeValeurAttribut
Deletes a value of a specified attribute.
Example
// Delete a specific value
// The read operation was already performed on the LDAP server
// The value to delete is found in the sValueToDelete string
LDAPStartModify("SessionName")
LDAPDeleteAttributeValue("SessionName", "AttributeName", sValueToDelete)
LDAPValidateModify("SessionName", "DN")
// Delete several specific values
// The read operation was already performed on the LDAP server
// The values to delete are found in sValueToDelete1 and sValueToDelete2
LDAPStartModify("SessionName")
LDAPDeleteAttributeValue("SessionName", "AttributeName", sValueToDelete1)
LDAPDeleteAttributeValue("SessionName", "AttributeName", sValueToDelete2)
LDAPValidateModify ("SessionName", "DN")
Syntax
<Result> = LDAPDeleteAttributeValue(<LDAP session> , <Attribute name> , <Attribute value>)
<Result>: Boolean
  • True if the deletion was performed,
  • 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 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:
  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.
Caution: These operations being performed locally then on the server, the logical order of the modifications must be respected (you cannot for example modify an attribute that was already 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: wd290com.dll
See also
Versión mínima requerida
  • Versión 10
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local