connection.rb 372 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer
  3. class Unit
  4. module Ldap
  5. class Connection < Sequencer::Unit::Common::Provider::Fallback
  6. uses :ldap_config
  7. provides :ldap_connection
  8. private
  9. def ldap_connection
  10. ::Ldap.new(ldap_config)
  11. end
  12. end
  13. end
  14. end
  15. end