voxpupuli / puppet-openldap

Manage OpenLDAP with Puppet
Apache License 2.0
37 stars 134 forks source link

Fix openldap_password function to avoid errors with latest Puppet 7 #398

Closed treydock closed 11 months ago

treydock commented 11 months ago

Errors:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, failed to coerce org.jruby.RubySymbol to java.lang.String

Stack trace on puppetserver:

/etc/puppetlabs/code/environments/test/modules/openldap/lib/puppet/functions/openldap_password.rb:38:in `generate_password'
smortex commented 11 months ago

Hey @treydock, that looks good, is it still a draft?

treydock commented 11 months ago

Ready for review. I wanted to roll this out to my LDAP servers to fully validate it solved the problem. This was with puppetserver-7.13.0 and puppet-agent-7.26.0