Method: Wobaduser::LDAP#initialize
- Defined in:
- lib/wobaduser/ldap.rb
#initialize(options = {}) ⇒ LDAP
Wobaduser::LDAP.new({, bind: true})
:ldap_options
-
for possible ldap options see Net::LDAP::new
:bind
-
true: bind on initialize, false: bind on later operations
13 14 15 16 17 18 19 |
# File 'lib/wobaduser/ldap.rb', line 13 def initialize( = {}) .symbolize_keys! reset_errors @ldap_options = .fetch(:ldap_options).symbolize_keys! do_bind = .fetch(:bind, true) connection(ldap_options: @ldap_options, bind: do_bind) end |