Logo Search packages:      
Sourcecode: dacode version File versions  Download package

Ldap::ls ( filter = "(objectclass=*)",
basedn = "" 
)

Lists all objects at the current level of LDAP hierarchy., never used

Parameters:
string the filter for the search
string the base dn to use, if not the current one. public

Definition at line 488 of file ldap.php3.

References connect(), and resetResult().

      {
            if (empty($basedn))
                  $basedn = $this->basedn;
            if (empty($filter))
                  $filter = "(objectclass=*)";

            $e = error_reporting(0);
            $result = array();
            if (!$this->connect())
            {
                  error_reporting($e);
                  return(0);
            }

            $this->sr = ldap_list($this->cid, $basedn, $filter);
            $ldap->error = ldap_error($this->cid);
            $this->resetResult();
            error_reporting($e);
            return($this->sr);
      }


Generated by  Doxygen 1.6.0   Back to index