From ab8ec6059542297e5061da9f1697b3cd8eb7d029 Mon Sep 17 00:00:00 2001 From: Zach Leslie Date: Tue, 5 Feb 2019 21:38:31 -0800 Subject: [PATCH] Add note to work around jruby-openssl bug --- .sync.yml | 2 +- README.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.sync.yml b/.sync.yml index d6bc1ac..fc43554 100644 --- a/.sync.yml +++ b/.sync.yml @@ -2,7 +2,7 @@ Gemfile: optional: ':extra': - gem: 'net-ldap' - version: '~> 0.12.1' + version: '~> 0.16.1' ':testextra': - gem: 'rspec-mocks' - gem: 'rspec-expectations' diff --git a/README.md b/README.md index d9745d1..fb97fee 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,14 @@ A Puppet function to query LDAP. The Ruby `net-ldap` gem is required to communicate with LDAP. The current version of net-ldap requires ruby 2.0.0. If you run your master with puppetserver you have to use version 0.12.1 which is the last version compatible with ruby 1.9 which is used by puppetserver. To install this use the following command: `puppetserver gem install net-ldap -v 0.12.1` +In some environments, when `ldapquery()` is used on Puppet Server, an error +like the following may appear. + + Error while evaluating a Function Call + +Please make sure you have `jruby-openssl` at least `0.10.1` with `puppetserver +gem install jruby-openssl -v 0.10.1`. + ## Sample Usage ### On the Master