Closed TomSellers closed 1 year ago
Note, the jruby-9.2
test failure is due to that version of JRuby not being compatible with the version of bundler that is being used.
ERROR: Error installing bundler:
The last version of bundler (>= 0) to support your Ruby & RubyGems was 2.3.26. Try installing it with `gem install bundler -v 2.3.26`
bundler requires Ruby version >= 2.6.0. The current ruby version is 2.5.8.0.
1
Error: Process completed with exit code 1.
JRuby 9.2.x is compatible with Ruby 2.5.x , while JRuby 9.3.x is compatible with Ruby 2.6.x.
@HarlemSquirrel Would it be possible to have this fix included in the next release?
@TomSellers Thanks for this. It looks great! Could you please update the branch from master so CI can run?
@HarlemSquirrel Triggered, the workflow is waiting on approval.
Net::LDAP::DN.each_pair
andNet::LDAP::DN.to_a
are stripping trailing spaces in the values they return. The comment foreach_pair
refers to RFC 2253 Section 3 for the rules on parsing the DN into key value pairs. It allows for spaces in values. In Section 2.4, which is just prior, it states how to escape leading and trailing spaces in values.Net::LDAP::DN
retains leading and trailing spaces and escapes as expected when callingto_s
however when callingeach_pair
orto_a
it is removing the trailing spaces.For example: Original data:
CN=Foo.bar.baz, OU=Foo \ ,OU=\ Bar, O=Baz
to_s
output:CN=Foo.bar.baz, OU=Foo \ ,OU=\ Bar, O=Baz
to_a
output:This PR contains changes to change this behavior and tests to verify the results.
Before changes
After changes