<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ldap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.ldap-read.php',
    1 => 'ldap_read',
    2 => 'Read an entry',
  ),
  'up' => 
  array (
    0 => 'ref.ldap.php',
    1 => 'LDAP İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.ldap-parse-result.php',
    1 => 'ldap_parse_result',
  ),
  'next' => 
  array (
    0 => 'function.ldap-rename.php',
    1 => 'ldap_rename',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ldap/functions/ldap-read.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ldap-read" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ldap_read</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ldap_read</span> &mdash; <span class="dc-title">Read an entry</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ldap-read-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ldap_read</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="class.ldap-connection.php" class="type LDAP\Connection">LDAP\Connection</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span></span> <code class="parameter">$ldap</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$base</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$filter</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$attributes</code><span class="initializer"> = []</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$attributes_only</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$sizelimit</code><span class="initializer"> = -1</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timelimit</code><span class="initializer"> = -1</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$deref</code><span class="initializer"> = <strong><code><a href="ldap.constants.php#constant.ldap-deref-never">LDAP_DEREF_NEVER</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.array.php" class="type array">array</a></span></span> <code class="parameter">$controls</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><span class="type"><a href="class.ldap-result.php" class="type LDAP\Result">LDAP\Result</a></span>|<span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Performs the search for a specified <code class="parameter">filter</code> on the
   directory with the scope <strong><code>LDAP_SCOPE_BASE</code></strong>. So it is
   equivalent to reading an entry from the directory.
  </p>
   <p class="para">
Aynı anda bir çok arama yapmak münkündür. Bu durumda, ilk bağımsız değişken, tek bir
<span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span> örneği değil,
<span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span> örnekleri dizisi olmalıdır. Aramalarda
aynı temel DN veya süzgeç kullanılmayacaksa bunun yerine ya temel DN dizisi
ya da süzgeç dizisi belirtilmeli ve bu diziler
<span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span> örnekleri dizisi ile aynı sayıda
eleman içermelidir, bunun sebebi bu dizilerin her girdisinin sırayla ayrı
aramalarda kullanılmasıdır. Aynı anda çoklu arama yapılması durumunda,
<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döndüren bir hata oluşmadığı takdirde bir
<span class="classname"><a href="class.ldap-result.php" class="classname">LDAP\Result</a></span> örnekleri dizisi döner.</p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ldap-read-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">ldap</code></dt>
     <dd>
      <p class="para">
       <span class="function"><a href="function.ldap-list.php" class="function">ldap_list()</a></span> veya <span class="function"><a href="function.ldap-connect.php" class="function">ldap_connect()</a></span> işlevinden dönen
<span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span>
nesnesi.
      </p>
     </dd>
    
    
     <dt><code class="parameter">base</code></dt>
     <dd>
      <p class="para">
       The base DN for the directory.
      </p>
     </dd>
    
    
     <dt><code class="parameter">filter</code></dt>
     <dd>
      <p class="para">
       An empty filter is not allowed. If you want to retrieve absolutely all
       information for this entry, use a filter of
       <code class="literal">objectClass=*</code>. If you know which entry types are
       used on the directory server, you might use an appropriate filter such
       as <code class="literal">objectClass=inetOrgPerson</code>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">attributes</code></dt>
     <dd>
      <p class="para">
       An array of the required attributes, e.g. array(&quot;mail&quot;, &quot;sn&quot;, &quot;cn&quot;).
       Note that the &quot;dn&quot; is always returned irrespective of which attributes
       types are requested.
      </p>
      <p class="para">
       Using this parameter is much more efficient than the default action
       (which is to return all attributes and their associated values).
       The use of this parameter should therefore be considered good
       practice.
      </p>
     </dd>
    
    
     <dt><code class="parameter">attributes_only</code></dt>
     <dd>
      <p class="para">
       Should be set to 1 if only attribute types are wanted. If set to 0
       both attributes types and attribute values are fetched which is the
       default behaviour.
      </p>
     </dd>
    
    
     <dt><code class="parameter">sizelimit</code></dt>
     <dd>
      <p class="para">
       Enables you to limit the count of entries fetched. Setting this to 0
       means no limit.
      </p>
      <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
       <p class="para">
        This parameter can NOT override server-side preset sizelimit. You can
        set it lower though.
       </p>
       <p class="para">
        Some directory server hosts will be configured to return no more than
        a preset number of entries. If this occurs, the server will indicate
        that it has only returned a partial results set. This also occurs if
        you use this parameter to limit the count of fetched entries.
       </p>
      </p></blockquote>
     </dd>
    
    
     <dt><code class="parameter">timelimit</code></dt>
     <dd>
      <p class="para">
       Sets the number of seconds how long is spend on the search. Setting
       this to 0 means no limit.
      </p>
      <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
       <p class="para">
        This parameter can NOT override server-side preset timelimit. You can
        set it lower though.
       </p>
      </p></blockquote>
     </dd>
    
    
     <dt><code class="parameter">deref</code></dt>
     <dd>
      <p class="para">
       Specifies how aliases should be handled during the search. It can be
       one of the following:
       <ul class="itemizedlist">
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="ldap.constants.php#constant.ldap-deref-never">LDAP_DEREF_NEVER</a></code></strong> - (default) aliases are never
          dereferenced.
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="ldap.constants.php#constant.ldap-deref-searching">LDAP_DEREF_SEARCHING</a></code></strong> - aliases should be
          dereferenced during the search but not when locating the base object
          of the search.
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="ldap.constants.php#constant.ldap-deref-finding">LDAP_DEREF_FINDING</a></code></strong> - aliases should be
          dereferenced when locating the base object but not during the search.
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="ldap.constants.php#constant.ldap-deref-always">LDAP_DEREF_ALWAYS</a></code></strong> - aliases should be dereferenced
          always.
         </span>
        </li>
       </ul>
      </p>
     </dd>
    
    
     <dt><code class="parameter">controls</code></dt>
     <dd>
      <p class="para">
       Array of <a href="ldap.controls.php" class="link">LDAP Controls</a> to send with the request.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ldap-read-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Başarı durumunda <span class="classname"><a href="class.ldap-result.php" class="classname">LDAP\Result</a></span> örneği veya
<span class="classname"><a href="class.ldap-result.php" class="classname">LDAP\Result</a></span>
örnekleri dizisi, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.ldap-read-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Sürüm: </th>
       <th>Açıklama</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
 <td>8.1.0</td>
 <td>
  <code class="parameter">ldap</code> bağımsız değişkeni artık
  <span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span> nesnesi kabul ediyor, evvelce
  <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> türünde geçerli bir <code class="literal">ldap link</code>
  değeri kabul ederdi.
 </td>
</tr>

      <tr>
 <td>8.1.0</td>
 <td>
  Artık <span class="classname"><a href="class.ldap-result.php" class="classname">LDAP\Result</a></span> nesnesi dönüyor;
  evvelce LDAP özkaynağı dönerdi.
 </td>
</tr>

      <tr><td>8.0.0</td>
<td><code class="parameter">denetimler</code> artık <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> olabiliyor;
evvelce <code class="literal">[]</code> öntanımlı idi.</td></tr>

      <tr>
       <td>7.3.0</td>
       <td>
        Support for <code class="parameter">controls</code> added
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


</div><?php manual_footer($setup); ?>