forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit20f9b61
committed
With gssencmode='require', check credential cache before connecting
Previously, libpq would establish the TCP connection, and thenimmediately disconnect if the credentials were not available. Thesame thing happened if you tried to use a Unix domain socket withgssencmode=require. Check those conditions before establishing the TCPconnection.This is a very minor issue, but my motivation to do this now is thatI'm about to add more detail to the tests for encryption negotiation.This makes the case of gssencmode=require but no credentialsconfigured fail at the same stage as with gssencmode=require andGSSAPI support not compiled at all. That avoids having to deal withvariations in expected output depending on build options.Discussion:https://www.postgresql.org/message-id/CAEze2Wja8VUoZygCepwUeiCrWa4jP316k0mvJrOW4PFmWP0Tcw@mail.gmail.com1 parent1169920 commit20f9b61
1 file changed
+30
-2
lines changedLines changed: 30 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2855 | 2855 |
| |
2856 | 2856 |
| |
2857 | 2857 |
| |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
2858 | 2885 |
| |
2859 | 2886 |
| |
2860 | 2887 |
| |
| |||
3218 | 3245 |
| |
3219 | 3246 |
| |
3220 | 3247 |
| |
3221 |
| - | |
| 3248 | + | |
3222 | 3249 |
| |
3223 | 3250 |
| |
3224 | 3251 |
| |
| |||
3237 | 3264 |
| |
3238 | 3265 |
| |
3239 | 3266 |
| |
| 3267 | + | |
3240 | 3268 |
| |
3241 |
| - | |
| 3269 | + | |
3242 | 3270 |
| |
3243 | 3271 |
| |
3244 | 3272 |
| |
|
0 commit comments
Comments
(0)