Update ldap.rb to allow LDAP and not LDAPS access

The code was failing because 
```
vendor/gems/ruby/3.1.0/gems/net-ldap-0.17.1/lib/net/ldap/connection.rb:72:in `open_connection': unsupported encryption method  (Net::LDAP::Error)
```
The "nil" encryption method doesn't exist, to not use encryption, we can just omit the `encryption` parameter
This commit is contained in:
Eléonore Carpentier 2023-04-02 12:26:55 +02:00 коммит произвёл GitHub
Родитель 3a623ac8a7
Коммит f71769fc06
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -239,8 +239,6 @@ module Entitlements
verify_mode: @disable_ssl_verification ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
}
}
else
ldap_options[:encryption] = { method: nil }
end
if @ca_file && ldap_options[:encryption].key?(:tls_options)