src/Classes/AdldapUsers.php
public function enable($username, $isGUID = false)
    {
        $this->adldap->utilities()->validateNotNull('Username', $username);

        $attributes = ['enabled' => 1];

        return $this->modify($username, $attributes, $isGUID);
    }
public function enable($username, $isGUID = false)
    {
        $this->adldap->utilities()->validateNotNull('Username', $username);

        $attributes = ['enabled' => 1];

        return $this->modify($username, $attributes, $isGUID);
    }
public function enable ( $ username , $ isGUID = false ) { $ this -> adldap -> utilities ( ) -> validateNotNull ( 'Username' , $ username ) ; $ attributes = [ 'enabled' => 1 ] ; return $ this -> modify ( $ username , $ attributes , $ isGUID ) ; }
Enable a user account.

@param string $username The username to enable
@param bool   $isGUID   Is the username passed a GUID or a samAccountName

@return bool|string

@throws AdldapException
Enable a user account .