|
|
|
|
Modifica el modo operativo de una sesión LDAP. // 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 ...
Sintaxis
<Result> = LDAPMode(<LDAP session> , <Option>)
<Result>: booleano - True si se realizó la modificación,
- False en caso contrario. ErrorInfo devuelve más detalles sobre el error.
<LDAP session>: Cadena de caracteres Nombre de la sesión LDAP utilizada. <Option>: Constante de tipo Integer Especifica el modo de funcionamiento de la sesión LDAP: | | LDAP_CacheDisabled | Cada llamada a LDAPNbValor y Valor LDAPValor requiere una conexión con el servidor. | LDAP_CacheEnabled | Las llamadas a las funciones LDAP están usando la caché interna para recuperar los valores de los atributos (modo Default). |
Observaciones Atención: La constante LDAP_CacheDisabled debe utilizarse en casos muy especiales. Esta función debe utilizarse para leer los atributos operativos de un servidor OpenLDAP.. Esto se debe a que en Default un servidor OpenLDAP no devuelve los atributos operativos de un objeto, y Atributo LDAPListAttribute tampoco lista estos atributos.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|