ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / LDAP functions
  • LDAP server and local LDAP object
  • Updating the local LDAP object
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
LDAPListAttribute (Function)
In french: LDAPListeAttribut
Lists the object attributes in an LDAP server.
Remark: This function is used to fetch the entire LDAP object locally (attributes and values of attributes).
// Find the attributes
sListAttributes is string
sListAttributes = LDAPListAttribute("MySession", "DC=pcs,DC=local")
Syntax
<Result> = LDAPListAttribute(<LDAP session> , <Object DN>)
<Result>: Character string
  • List of attributes,
  • Empty string ("") if no attribute is associated with the object. The different attributes are separated by "CR" characters (Carriage Return).
If an error occurs, <Result> corresponds to an empty string ("") and the ErrorOccurred variable is set to True. ErrorInfo returns more details about the error.
<LDAP session>: Character string
Name of LDAP session used.
<Object DN>: Character string
Distinguished Name (DN) of object whose attributes are sought.
Remarks

LDAP server and local LDAP object

The LDAP server contains LDAP objects.
The local LDAP object is an LDAP object fetched from the server.

Updating the local LDAP object

When a read LDAP function is run (LDAPListAttribute, LDAPNbValue, LDAPValue), the server object is entirely fetched back in order to limit the communications with the server. Therefore, if these read functions are called several times with the same DN, the communication with the server is established by the first call. The other calls will read the local object.
LDAPListAttribute updates the local LDAP object only if the DN of the object passed as parameter is different from the last DN passed as parameter to one of the following functions: LDAPListAttribute, LDAPNbValue, LDAPValue.
LDAPListAttribute does not update the local LDAP object if the DN passed as parameter is the same as the last DN passed as parameter to one of the following functions: LDAPListAttribute, LDAPNbValue, LDAPValue. However, if LDAPValidateAdd and LDAPValidateModify have been used with this same DN, the local object is automatically updated.
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
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help