Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ldap.rb to allow unencrypted LDAP Access #22

Merged
merged 5 commits into from
Aug 29, 2023
Merged

Conversation

Shaeli
Copy link
Member

@Shaeli Shaeli commented Apr 2, 2023

The code is failing when connecting to an LDAP with no encryption enabled

vendor/gems/ruby/3.1.0/gems/net-ldap-0.17.1/lib/net/ldap/connection.rb:72:in `open_connection': unsupported encryption method  (Net::LDAP::Error)

The "nil" encryption method doesn't exist, to not use encryption, we can just omit the encryption key in the options hash

See https://www.rubydoc.info/gems/net-ldap/Net%2FLDAP:initialize for more info

The code was failing because 
```
vendor/gems/ruby/3.1.0/gems/net-ldap-0.17.1/lib/net/ldap/connection.rb:72:in `open_connection': unsupported encryption method  (Net::LDAP::Error)
```
The "nil" encryption method doesn't exist, to not use encryption, we can just omit the `encryption` parameter
@DanHoerst
Copy link
Contributor

@Shaeli do you have a Rubygems account? I'll need to give you push access before you can run scripts/release

@Shaeli
Copy link
Member Author

Shaeli commented Apr 3, 2023

@DanHoerst I don't have one but I can create one

@GrantBirki
Copy link
Member

I have some changes coming up and would like to get this merged for you so I don't leave this PR in a state of wild merge conflicts.

@DanHoerst I have a RubyGems account and can merge this, then run script/release to get this over the finish line.

My account is: https://rubygems.org/profiles/GrantBirki

@DanHoerst
Copy link
Contributor

@GrantBirki GrantBirki merged commit a380771 into main Aug 29, 2023
9 checks passed
@GrantBirki GrantBirki deleted the Shaeli-patch-1 branch August 29, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants