Skip to content

Commit

Permalink
Merge pull request #22 from github/Shaeli-patch-1
Browse files Browse the repository at this point in the history
Update ldap.rb to allow unencrypted LDAP Access
  • Loading branch information
GrantBirki authored Aug 29, 2023
2 parents 27deb86 + 94c7502 commit a380771
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
entitlements-app (0.2.0)
entitlements-app (0.2.1)
concurrent-ruby (= 1.1.9)
faraday (~> 2.0)
net-ldap (~> 0.17)
Expand All @@ -27,10 +27,10 @@ GEM
reline (>= 0.3.1)
diff-lcs (1.5.0)
docile (1.4.0)
faraday (2.5.2)
faraday (2.7.4)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.0)
faraday-net_http (3.0.2)
hashdiff (1.0.1)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1
2 changes: 0 additions & 2 deletions lib/entitlements/service/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ def ldap
verify_mode: @disable_ssl_verification ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
}
}
else
ldap_options[:encryption] = { method: nil }
end

if @ca_file && ldap_options[:encryption].key?(:tls_options)
Expand Down
1 change: 0 additions & 1 deletion spec/unit/entitlements/service/ldap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
.with(
host: "ldap.example.net",
port: 389,
encryption: { method: nil },
auth: {
method: :simple,
username: "uid=some-user,ou=system-accounts,dc=example,dc=net",
Expand Down
Binary file removed vendor/cache/faraday-2.5.2.gem
Binary file not shown.
Binary file added vendor/cache/faraday-2.7.4.gem
Binary file not shown.
Binary file removed vendor/cache/faraday-net_http-3.0.0.gem
Binary file not shown.
Binary file added vendor/cache/faraday-net_http-3.0.2.gem
Binary file not shown.

0 comments on commit a380771

Please sign in to comment.