|
|
|
|
LDAPMode (Function) In french: LDAPMode Modifies the operating mode of an LDAP session. // 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(<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_CacheDisabled | Each call to LDAPNbValue and LDAPValue requires a connection to the server. | LDAP_CacheEnabled | The calls to the LDAP functions are using the internal cache to retrieve the values of attributes (default mode). |
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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|