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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
LDAPMode (Function)
In french: LDAPMode
Modifies the operating mode of an LDAP session.
Example
// Procédure de connexion
...

// Désactivation du système de cache
LDAPMode("MaSessionLDAP", LDAP_CacheDisabled)

// Récupération du nombre de racines
NbRacine is int = LDAPNbValue("MaSessionLDAP", "namingContexts")

// Affichage des différentes racines du serveur
FOR Indice = 1 TO NbRacine
	Info(LDAPValue("MaSessionLDAP", "namingContexts", Indice)
END

// Réactivation du système de cache
LDAPMode("MaSessionLDAP", LDAP_CacheEnabled)

// Procédure de déconnexion
...
Syntax
<Result> = LDAPMode(<LDAP session> , <Option>)
<Result>: Boolean
  • True if the modification is effective,
  • False otherwise. ErrorInfo returns more details about the error.
<LDAP session>: Character string
Name of LDAP session used.
<Option>: Integer constant
Specifies the operating mode of the LDAP session:
LDAP_CacheDisabledEach call to LDAPNbValue and LDAPValue requires a connection to the server.
LDAP_CacheEnabledThe calls to the LDAP functions are using the internal cache to retrieve the values of attributes (default mode).
Remarks
Attention The constant LDAP_CacheInactive constant is to be used in very special cases.
This function must be used to read the operational attributes of an OpenLDAP server. This is because by default an OpenLDAP server does not return the operational attributes of an object, and LDAPListAttribute does not list these attributes either.
Component: wd300com.dll
See also
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help