PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
LDAPMode (Function)
In French: LDAPMode
Modifies the operating mode of an LDAP session.
Example
// Connection procedure
...

// Disable the cache system
LDAPMode("MyLDAPSession", LDAP_CacheDisabled)

// Retrieve the number of roots
NbRoot is int = LDAPNbValue("MyLDAPSession", "namingContexts")

// Display the different roots of the server
FOR Subscript = 1 TO NbRoot
        Info(LDAPValue("MyLDAPSession", "namingContexts", Subscript)
END

// Re-enable the cache system
LDAPMode("MyLDAPSession", LDAP_CacheEnabled)

// Disconnection procedure
...
Syntax
<Result> = LDAPMode(<Session Name> , <Option>)
<Result>: Boolean
  • True if the modification is effective,
  • False otherwise. ErrorInfo returns more details about the error.
<Session Name>: Character string
Name of the LDAP session used.
<Option>: Integer constant
Specifies the operating mode of the LDAP session:
LDAP_CacheEnabledThe calls to the LDAP functions use the internal cache to retrieve the values of the attributes (default mode).
LDAP_CacheDisabledEach call to LDAPNbValue and LDAPValue requires a connection to the server.
Remarks
Caution: The LDAP_CacheDisabled constant must 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
See also
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment