Add LDAP user_filter to Ldap::Group#group_user_dns_memberuid search

This commit is contained in:
Ryan Lue 2018-05-16 22:36:26 +08:00
parent 401923c738
commit c0e02c3d89

View file

@ -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