lib/acs/ldap/connector.rb in acs-ldap-0.2.2 vs lib/acs/ldap/connector.rb in acs-ldap-0.2.3

- old
+ new

@@ -119,23 +119,17 @@ def connect logger.debug "LDAP connect" if ! @connected logger.debug "Binding to ldap..." @ldap = Net::LDAP.new(ldap_params) - begin if @ldap.bind logger.debug "Connection succeed" @connected = true else @connected = false @ldap = nil logger.debug "Connection failed" end - rescue Net::LDAP::Error => e - logger.error "Connection refused '#{e.inspect}'" - @connected = false - @ldap = nil - end @ldap else @logger.debug "LDAP already connected" nil end