diff options
Diffstat (limited to 'lib/puppet/util/ldap')
-rw-r--r-- | lib/puppet/util/ldap/connection.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/util/ldap/connection.rb b/lib/puppet/util/ldap/connection.rb index 4f71069ef..624bc6f14 100644 --- a/lib/puppet/util/ldap/connection.rb +++ b/lib/puppet/util/ldap/connection.rb @@ -60,7 +60,6 @@ class Puppet::Util::Ldap::Connection # Start our ldap connection. def start - begin case ssl when :tls @connection = LDAP::SSLConn.new(host, port, true) @@ -72,8 +71,7 @@ class Puppet::Util::Ldap::Connection @connection.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3) @connection.set_option(LDAP::LDAP_OPT_REFERRALS, LDAP::LDAP_OPT_ON) @connection.simple_bind(user, password) - rescue => detail + rescue => detail raise Puppet::Error, "Could not connect to LDAP: #{detail}" - end end end |