Follow up: Fixes issue #1664 - Missing support for groupOfUniqueNames / uniquemember in LDAP sync.
This commit is contained in:
parent
26800ad02f
commit
a8e11c50f3
1 changed files with 4 additions and 1 deletions
|
@ -136,8 +136,11 @@ class Ldap
|
||||||
|
|
||||||
def group_user_dns(entry)
|
def group_user_dns(entry)
|
||||||
return entry[:member] if entry[:member].present?
|
return entry[:member] if entry[:member].present?
|
||||||
return if entry[:memberuid].blank?
|
return group_user_dns_memberuid(entry) if entry[:memberuid].present?
|
||||||
|
return entry[:uniquemember] if entry[:uniquemember].present?
|
||||||
|
end
|
||||||
|
|
||||||
|
def group_user_dns_memberuid(entry)
|
||||||
entry[:memberuid].collect do |uid|
|
entry[:memberuid].collect do |uid|
|
||||||
dn = nil
|
dn = nil
|
||||||
@ldap.search("(uid=#{uid})", attributes: %w[dn]) do |user|
|
@ldap.search("(uid=#{uid})", attributes: %w[dn]) do |user|
|
||||||
|
|
Loading…
Reference in a new issue