Set default GSSEncMode to allow instead of prefer #1909
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello there 馃憢
First off, thank you for pgjdbc. I'm a bit new to JVM and this repo makes it a lot nicer to learn how things work.
I wanted to propose a change in the default connection properties with the intent to prevent fatal errors for some default Postgres servers. As it's a very small change I figured a PR could help things more along than an issue.
The problem
I recently bumped my pgjdbc to
42.2.16
and discovered numerous fatal errors in our Postgres server logs.The root cause of these errors traced back to the introduction of GSSAPI encrypted connection support in
42.2.15
.While I think the feature itself is probably a good addition to those using single-sign-on, the decision to stimulate it
in every connection is probably a bit too much. Hence this PR will set the default gssEncMode to
allow
instead ofprefer
.Arguments to change the default of gssEncMode:
Reproduction
42.2.15
or up and Postgres10
,9.6
or9.5
jdbc:postgresql://127.0.0.1:5432/mydb
Notes
Let me know what you think 馃槃 . I'd be happy to hear your thoughts.
All Submissions:
Changes to Existing Features: