# 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
Generated with the Darkfish Rdoc Generator 2.