LDAP: Rename client method, add modify method

This commit is contained in:
2024-03-13 14:26:44 +01:00
parent eac8fa6edb
commit 38b3d68fd5
2 changed files with 24 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ module LdapManager
attributes = %w{ jpegPhoto }
filter = Net::LDAP::Filter.eq("cn", @cn)
entry = ldap_client.search(base: treebase, filter: filter, attributes: attributes).first
entry = client.search(base: treebase, filter: filter, attributes: attributes).first
entry.try(:jpegPhoto) ? entry.jpegPhoto.first : nil
end
end