def disable
      if enabled?
        Cratus::LDAP.replace_attribute(
          dn,
          Cratus.config.user_account_control_attribute,
          ['514']
        )
        refresh
      else
        true
      end
    end
def disable
      if enabled?
        Cratus::LDAP.replace_attribute(
          dn,
          Cratus.config.user_account_control_attribute,
          ['514']
        )
        refresh
      else
        true
      end
    end
def disable if enabled? Cratus :: LDAP . replace_attribute ( dn , Cratus . config . user_account_control_attribute , [ '514' ] ) refresh else true end end
Disables an enabled user
Disables an enabled user