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

Ldap::mkdir ( attrname,
dirname,
basedn = "" 
)

Add a new entry in directory of objectClass top

Parameters:
string Name of the attribute (for the DN)
string Name of the entry (for the DN)
string Dn where to add entry
Returns:
boolean true on success public

Definition at line 602 of file ldap.php3.

      {
            if (empty($basedn))
                  $basedn = $this->basedn;
            $e = error_reporting(0);
            $info["objectclass"] = "top";
            //$info[$attrname] = $dirname;
            $r = ldap_add($this->cid, "$attrname=$dirname, " . $basedn, $info);
            $ldap->error = ldap_error($this->cid);
            error_reporting($e);
            return($r ? $r : 0);
      }


Generated by  Doxygen 1.6.0   Back to index