Add LDAP user_filter to Ldap::Group#group_user_dns_memberuid search
This commit is contained in:
parent
401923c738
commit
c0e02c3d89
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class Ldap
|
|||
def group_user_dns_memberuid(entry)
|
||||
entry[:memberuid].collect do |uid|
|
||||
dn = nil
|
||||
@ldap.search("(uid=#{uid})", attributes: %w[dn]) do |user|
|
||||
@ldap.search("(&(uid=#{uid})#{Import::Ldap.config[:user_filter]})", attributes: %w[dn]) do |user|
|
||||
dn = user.dn
|
||||
end
|
||||
dn
|
||||
|
|
Loading…
Reference in a new issue