Updated LDAP user search performance by attributes
This commit is contained in:
parent
d235ca3620
commit
4e33827544
|
@ -59,7 +59,7 @@ module Backend
|
|||
CLIENT.connection do |client|
|
||||
client
|
||||
.authenticate(Backend.config.ldap.bind_dn, Backend.config.ldap.bind_password)
|
||||
.search(base: dn)
|
||||
.search(base: dn, attributes: %w(givenName sn mail))
|
||||
.first
|
||||
end
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue