cschiewek / devise_ldap_authenticatable

Devise Module for LDAP
MIT License
594 stars 359 forks source link

Allow tls_options hash to be passed to Net::LDAP #236

Closed mattcg closed 4 years ago

mattcg commented 7 years ago

Net::LDAP::Connection supports a hash under the :encryption key in the options hash. The hash may have two keys, :method and :tls_options just a single symbol value (:simple_tls or :start_tls).

This would then allow you to add options like the following to your ldap.yml:

development:
  host: localhost
  port: 636
  ssl:
    method: simple_tls
    tls_options:
      verify_mode: VERIFY_NONE
      session_cache_mode: SESSION_CACHE_CLIENT
lucivaldo commented 7 years ago

Very much necessary!!!

olleolleolle commented 6 years ago

See also #246.