2017-11-29 16:54:52 +00:00
|
|
|
require 'ldap'
|
|
|
|
|
|
|
|
class Sequencer
|
|
|
|
class Unit
|
|
|
|
module Ldap
|
2017-11-30 12:44:41 +00:00
|
|
|
class Connection < Sequencer::Unit::Common::FallbackProvider
|
2017-11-29 16:54:52 +00:00
|
|
|
uses :ldap_config
|
|
|
|
provides :ldap_connection
|
|
|
|
|
2017-11-30 12:44:41 +00:00
|
|
|
private
|
2017-11-29 16:54:52 +00:00
|
|
|
|
2017-11-30 12:44:41 +00:00
|
|
|
def fallback
|
|
|
|
::Ldap.new(ldap_config)
|
2017-11-29 16:54:52 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|