downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ldap_get_values_len> <ldap_get_entries
[edit] Last updated: Fri, 17 May 2013

view this page in

ldap_get_option

(PHP 4 >= 4.0.4, PHP 5)

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 wird FALSE zurückgegeben.

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

Hinweis:

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().



add a note add a note User Contributed Notes ldap_get_option - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites