From b04f56faedf298fe5e4dbfbc2dbf74f64687acc0 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 12 Jun 2017 10:04:27 +0200 Subject: [PATCH] Working on issue #1179 - Added OpenLDAP Fusion Directory user filter for auto detection. --- lib/ldap/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ldap/user.rb b/lib/ldap/user.rb index ca000dbfc..681fe9028 100644 --- a/lib/ldap/user.rb +++ b/lib/ldap/user.rb @@ -162,7 +162,7 @@ class Ldap # # @return [String, nil] The active or found filter or nil if none could be found. def filter - @filter ||= lookup_filter(['(&(objectClass=user)(samaccountname=*)(!(samaccountname=*$)))', '(objectClass=user)', '(objectClass=posixaccount)']) + @filter ||= lookup_filter(['(&(objectClass=user)(samaccountname=*)(!(samaccountname=*$)))', '(objectClass=user)', '(objectClass=posixaccount)', '(objectClass=person)']) end # The active uid attribute of the instance. If none give on initialization an automatic lookup is performed.