<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ldap.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ldap.using.html">Using the PHP LDAP calls</a></div> <div class="up"><a href="book.ldap.html">LDAP</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="ldap.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <dl> <dt id="constant.ldap-deref-never"> <span class="term"> <strong><code>LDAP_DEREF_NEVER</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-deref-searching"> <span class="term"> <strong><code>LDAP_DEREF_SEARCHING</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-deref-finding"> <span class="term"> <strong><code>LDAP_DEREF_FINDING</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-deref-always"> <span class="term"> <strong><code>LDAP_DEREF_ALWAYS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-opt-deref"> <span class="term"> <strong><code>LDAP_OPT_DEREF</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies alternative rules for following aliases at the server. </span> </dd> </dt> <dt id="constant.ldap-opt-sizelimit"> <span class="term"> <strong><code>LDAP_OPT_SIZELIMIT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <p class="para"> Specifies the maximum number of entries that can be returned on a search operation. </p> <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara"> The actual size limit for operations is also bounded by the server's configured maximum number of return entries. The lesser of these two settings is the actual size limit. </span> </p></blockquote> </dd> </dt> <dt id="constant.ldap-opt-timelimit"> <span class="term"> <strong><code>LDAP_OPT_TIMELIMIT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies the number of seconds to wait for search results. </span> <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara"> The actual time limit for operations is also bounded by the server's configured maximum time. The lesser of these two settings is the actual time limit. </span> </p></blockquote> </dd> </dt> <dt id="constant.ldap-opt-network-timeout"> <span class="term"> <strong><code>LDAP_OPT_NETWORK_TIMEOUT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Option for <span class="function"><a href="function.ldap-set-option.html" class="function">ldap_set_option()</a></span> to allow setting network timeout. (Available as of PHP 5.3.0) </span> </dd> </dt> <dt id="constant.ldap-opt-protocol-version"> <span class="term"> <strong><code>LDAP_OPT_PROTOCOL_VERSION</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies the LDAP protocol to be used (V2 or V3). </span> </dd> </dt> <dt id="constant.ldap-opt-error-number"> <span class="term"> <strong><code>LDAP_OPT_ERROR_NUMBER</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-opt-referrals"> <span class="term"> <strong><code>LDAP_OPT_REFERRALS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies whether to automatically follow referrals returned by the LDAP server. </span> </dd> </dt> <dt id="constant.ldap-opt-restart"> <span class="term"> <strong><code>LDAP_OPT_RESTART</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-opt-host-name"> <span class="term"> <strong><code>LDAP_OPT_HOST_NAME</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-opt-error-string"> <span class="term"> <strong><code>LDAP_OPT_ERROR_STRING</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-opt-matched-dn"> <span class="term"> <strong><code>LDAP_OPT_MATCHED_DN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.ldap-opt-server-controls"> <span class="term"> <strong><code>LDAP_OPT_SERVER_CONTROLS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies a default list of server controls to be sent with each request. </span> </dd> </dt> <dt id="constant.ldap-opt-client-controls"> <span class="term"> <strong><code>LDAP_OPT_CLIENT_CONTROLS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies a default list of client controls to be processed with each request. </span> </dd> </dt> <dt id="constant.ldap-opt-debug-level"> <span class="term"> <strong><code>LDAP_OPT_DEBUG_LEVEL</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Specifies a bitwise level for debug traces. </span> </dd> </dt> <dt id="constant.gslc-ssl-no-auth"> <span class="term"> <strong><code>GSLC_SSL_NO_AUTH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.gslc-ssl-oneway-auth"> <span class="term"> <strong><code>GSLC_SSL_ONEWAY_AUTH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.gslc-ssl-twoway-auth"> <span class="term"> <strong><code>GSLC_SSL_TWOWAY_AUTH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> </dl> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ldap.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ldap.using.html">Using the PHP LDAP calls</a></div> <div class="up"><a href="book.ldap.html">LDAP</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>