Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: ldap_get_option - Manual
[go: Go Back, main page]

PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<ldap_get_entriesldap_get_values_len" width="11" height="7"/>
view the version of this page
Last updated: Thu, 26 May 2005

ldap_get_option

(PHP 4 >= 4.0.4, PHP 5)

ldap_get_option -- 指定したオプションの現在の値を得る

説明

boolean ldap_get_option ( int link_identifier, int option, mixed retval )

指定したオプションの値を retval に設定し、 成功時にTRUE、エラー時にFALSEを返します。

パラメータ option は次のどれかとします。 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 これらは、draft-ietf-ldapext-ldap-c-api-xx.txt で説明されています。

この関数は、OpenLDAP 2.x.x または Netscape Directory SDK x.x を使 用した場合にのみ利用可能で、PHP 4.0.4 で追加されました。

例 1. プロトコルのバージョンを調べる

// $ds はディレクトリサーバへの有効なリンクIDです
if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version))
   echo "使用中のプロトコルのバージョン: $version";
else
   echo "プロトコルのバージョンを定義することができません";

ldap_set_option() も参照ください。



add a note add a note User Contributed Notes
ldap_get_option
radovanr at NOSPAM dot zl dot cz
24-Jan-2002 10:27
It is good idea to say something about default values. What values are used, when they aren't set exactly using ldap_set_option?

<ldap_get_entriesldap_get_values_len" width="11" height="7"/>
 Last updated: Thu, 26 May 2005
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This mirror generously provided by: PacketBusiness, Inc.
Last updated: Fri Nov 11 23:34:24 2005 JST