Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
English Site | German Site 

 Web Hosting

 Virtual Dedicated Servers

 Chequeo de dominio

 Haga su pedido

 Estado del pedido

 Support

 Contáctenos

 Download

 Network

 Network Status

 Webdesign / Templates

 Efectuar pago

 Terms & Conditions

 Imprimir

 Notas Legales

 Declaración de Privacidad
  PHP / ldap_get_option
ldap_get_option

ldap_get_option

(PHP 4 >= 4.0.4)

ldap_get_option --  Liefert den aktuellen Wert für eine gegebene Option

Beschreibung

bool ldap_get_option ( resource Verbindungs-Kennung, int option, mixed retval)

Setzt retval auf den Wert der gewählten Option. Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.

Der Parameter option kann einer der folgenden sein: LDAP_OPT_DEREF, LDAP_OPT_SIZELIMIT, LDAP_OPT_TIMELIMIT, LDAP_OPT_PROTOCOL_VERSION, LDAP_OPT_ERROR_NUMBER, LDAP_OPT_REFERRALS, LDAP_OPT_RESTART, LDAP_OPT_HOST_NAME, LDAP_OPT_ERROR_STRING, LDAP_OPT_MATCHED_DN. Beschrieben sind diese unter draft-ietf-ldapext-ldap-c- api-xx.txt

Anmerkung: Diese Funktion steht nur zur Verfügung, wenn Sie OpenLDAP 2.x.x ODER Netscape Directory SDK x.x benutzen. Wurde in PHP 4.0.4 hinzugefügt.

Beispiel 1. Prüfen der Protokollversion

// $ds eine gültige Verbindungs-Kennung für einen Verzeichnis-Server

if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version))
    echo "Sie benutzen die Protokollversion $version";
else
    echo "Protokollversion konnte nicht bestimmt werden";

Siehe auch ldap_set_option().


© 1998-2007 Gold Vision Communications All Rights Reserved.