diff --git a/lib/puppet_x/ldapquery.rb b/lib/puppet_x/ldapquery.rb index e6cb24a..2cf88f7 100644 --- a/lib/puppet_x/ldapquery.rb +++ b/lib/puppet_x/ldapquery.rb @@ -69,8 +69,7 @@ module PuppetX if tls conf[:encryption] = { - method: :simple_tls, - tls_options: { ca_file: ca_file } + method: :simple_tls } if File.file?(ca_file) conf[:encryption][:tls_options] = { ca_file: ca_file }