Devise Add On which will unwrap your Active Directory userAccountControl bitmask.