src/Classes/AdldapContacts.php
public function modify($contactName, $attributes)
    {
        $contactDn = $this->dn($contactName);

        if ($contactDn) {
            // Translate the update to the LDAP schema
            $mod = $this->adldap->ldapSchema($attributes);

            // Check to see if this is an enabled status update
            if (!$mod) {
                return false;
            }

            // Do the update
            return $this->connection->modify($contactDn, $mod);
        }

        return false;
    }
public function modify($contactName, $attributes)
    {
        $contactDn = $this->dn($contactName);

        if ($contactDn) {
            // Translate the update to the LDAP schema
            $mod = $this->adldap->ldapSchema($attributes);

            // Check to see if this is an enabled status update
            if (!$mod) {
                return false;
            }

            // Do the update
            return $this->connection->modify($contactDn, $mod);
        }

        return false;
    }
public function modify ( $ contactName , $ attributes ) { $ contactDn = $ this -> dn ( $ contactName ) ; if ( $ contactDn ) { // Translate the update to the LDAP schema $ mod = $ this -> adldap -> ldapSchema ( $ attributes ) ; // Check to see if this is an enabled status update if ( ! $ mod ) { return false ; } // Do the update return $ this -> connection -> modify ( $ contactDn , $ mod ) ; } return false ; }
Modify a contact. Note if you set the enabled
attribute you must not specify any other attributes.

@param string $contactName The contact to query
@param array  $attributes  The attributes to modify

@return bool|string
Modify a contact . Note if you set the enabled attribute you must not specify any other attributes .