src/Connections/Ldap.php
public function add($dn, array $entry)
    {
        if ($this->suppressErrors) {
            return @ldap_add($this->getConnection(), $dn, $entry);
        }

        return ldap_add($this->getConnection(), $dn, $entry);
    }
public function add($dn, array $entry)
    {
        if ($this->suppressErrors) {
            return @ldap_add($this->getConnection(), $dn, $entry);
        }

        return ldap_add($this->getConnection(), $dn, $entry);
    }
public function add ( $ dn , array $ entry ) { if ( $ this -> suppressErrors ) { return @ ldap_add ( $ this -> getConnection ( ) , $ dn , $ entry ) ; } return ldap_add ( $ this -> getConnection ( ) , $ dn , $ entry ) ; }
Adds entries to the current LDAP directory.

@param string $dn
@param array  $entry

@return bool
Adds entries to the current LDAP directory .