We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b2451 commit d29f991Copy full SHA for d29f991
lib/github/ldap/group.rb
@@ -72,9 +72,12 @@ def member_names
72
# Internal - Check if an object class includes the member names
73
# Use `&` rathen than `include?` because both are arrays.
74
#
75
+ # NOTE: object classes are downcased by default in Net::LDAP, so this
76
+ # will fail to match correctly unless we also downcase our group classes.
77
+ #
78
# Returns true if the object class includes one of the group class names.
79
def group?(object_class)
- !(GROUP_CLASS_NAMES & object_class).empty?
80
+ !(GROUP_CLASS_NAMES.map(&:downcase) & object_class.map(&:downcase)).empty?
81
end
82
83
# Internal - Generate a hash with all the group DNs for caching purposes.
0 commit comments