Browse Source

Fixed issue #1347 - Group retrieval fails for objectClass 'organization'.

Thorsten Eckel 7 years ago
parent
commit
4bd8da957f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/ldap/group.rb

+ 1 - 1
lib/ldap/group.rb

@@ -112,7 +112,7 @@ class Ldap
     #
     # @return [String, nil] The active or found filter or nil if none could be found.
     def filter
-      @filter ||= lookup_filter(['(objectClass=group)', '(objectClass=posixgroup)'])
+      @filter ||= lookup_filter(['(objectClass=group)', '(objectClass=posixgroup)', '(objectClass=organization)'])
     end
 
     # The active uid attribute of the instance. If none give on initialization an automatic lookup is performed.