LDAP: Fix attempted modification of frozen hash (#39571)

This commit is contained in:
David Roetzel authored and Claire committed 2026-06-23 17:35:29 +02:00
1 parent 4f425d9b77
commit b06e9f5a5e
2 files changed
+42 -1

No files matched your search

@@ -58,7 +58,7 @@ module User::LdapAuthenticable
if [:simple_tls, :start_tls].include?(Devise.ldap_method)
opts[:encryption] = {
method: Devise.ldap_method,
tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.tap { |options| options[:verify_mode] = OpenSSL::SSL::VERIFY_NONE if Devise.ldap_tls_no_verify },
tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.dup.tap { |options| options[:verify_mode] = OpenSSL::SSL::VERIFY_NONE if Devise.ldap_tls_no_verify },
}
end