module Mooset::Endpoints::Ldap::AccountControl
Constants
- ACCOUNTDISABLE
- DONT_EXPIRE_PASSWORD
- DONT_REQ_PREAUTH
- ENCRYPTED_TEXT_PWD_ALLOWED
- HOMEDIR_REQUIRED
- INTERDOMAIN_TRUST_ACCOUNT
- LOCKOUT
- MNS_LOGON_ACCOUNT
- NORMAL_ACCOUNT
- NOT_DELEGATED
- PARTIAL_SECRETS_ACCOUNT
- PASSWD_CANT_CHANGE
- PASSWD_NOTREQD
- PASSWORD_EXPIRED
- SCRIPT
- SERVER_TRUST_ACCOUNT
- SMARTCARD_REQUIRED
- TEMP_DUPLICATE_ACCOUNT
- TRUSTED_FOR_DELEGATION
- TRUSTED_TO_AUTH_FOR_DELEGATION
- USE_DES_KEY_ONLY
- WORKSTATION_TRUST_ACCOUNT
Public Class Methods
decode(value)
click to toggle source
# File lib/mooset/endpoints/ldap/user.rb, line 29 def decode(value) value.within do |int| result = OpenStruct.new AccountControl.constants(false).each do |name| result[name.to_s.downcase] = (int & AccountControl.const_get(name)) > 0 end result end.value end