Просмотр исходного кода

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

Thorsten Eckel 7 лет назад
Родитель
Сommit
4bd8da957f
1 измененных файлов с 1 добавлено и 1 удалено
  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.