nature/graylog2-web-interface — comment on commit 1c743618e415d68f6e3d2bbbc7d606c9b93c91d2
File: app/concerns/ldap_authentication.rb line 16
By thommay:

you probably just want to use ldap_session.bind_as here:

if details = ldap_session.bind_as(base: ::Configuration.ldap_base, filter: "(uid=#{login})",password: password)
email = details.first[:mail].first.to_s
password = "not needed for ldap"
end