# File lib/puppet/indirector/ldap.rb, line 63 63: def connection 64: unless @connection 65: raise Puppet::Error, "Could not set up LDAP Connection: Missing ruby/ldap libraries" unless Puppet.features.ldap? 66: begin 67: conn = Puppet::Util::Ldap::Connection.instance 68: conn.start 69: @connection = conn.connection 70: rescue => detail 71: puts detail.backtrace if Puppet[:trace] 72: raise Puppet::Error, "Could not connect to LDAP: #{detail}" 73: end 74: end 75: 76: @connection 77: end