Methods

Class Index [+]

Quicksearch

ActiveSambaLdap::ActiveDirectory::GroupType

Constants

GLOBAL_GROUP
(Not documented)
DOMAIN_LOCAL_GROUP
(Not documented)
UNIVERSAL_GROUP
(Not documented)
SECURITY_ENABLED
(Not documented)

Public Instance Methods

resolve(name, security_enabled=true) click to toggle source

(Not documented)

# File lib/active_samba_ldap/active_directory.rb, line 47
      def resolve(name, security_enabled=true)
        type = 0
        case name.to_s
        when "global"
          type = GLOBAL_GROUP
        when /\Adomain[-_]local\z/
          type = DOMAIN_LOCAL_GROUP
        when "universal"
          type = UNIVERSAL_GROUP
        else
          # TODO: I18N
          raise ArgumentError, "unknown group type: #{name.inspect}: " +
                               "available: [:global, :domain_local, :universal]"
        end
        type |= SECURITY_ENABLED if security_enabled
        [type].pack("L").unpack("l")[0]
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.