Skip to content

Fix a possible timeout with gss/sspi auth#5028

Merged
vonzshik merged 3 commits intomainfrom
4888-fix-gss-sspi-auth
Apr 7, 2023
Merged

Fix a possible timeout with gss/sspi auth#5028
vonzshik merged 3 commits intomainfrom
4888-fix-gss-sspi-auth

Conversation

@vonzshik
Copy link
Copy Markdown
Contributor

@vonzshik vonzshik commented Apr 7, 2023

Fixes #4888

In some cases NegotiateAuthentication.GetOutgoingBlob can return NegotiateAuthenticationStatusCode.Completed but with not-null data. This can happen on the first cycle, in which case we have to send that data first to pg, otherwise we'll fail with a timeout.

@roji
Copy link
Copy Markdown
Member

roji commented Apr 7, 2023

/cc @Brar

@vonzshik vonzshik enabled auto-merge (squash) April 7, 2023 13:28
@vonzshik vonzshik merged commit ae3309f into main Apr 7, 2023
@vonzshik vonzshik deleted the 4888-fix-gss-sspi-auth branch April 7, 2023 13:36
vonzshik added a commit that referenced this pull request Apr 7, 2023
@vonzshik
Copy link
Copy Markdown
Contributor Author

vonzshik commented Apr 7, 2023

Backported to 7.0.4 via acd3d5e

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.

Exception when opening connection using SSPI/GSS authentication from Windows Server 2012 R2 with version 7.0.1

2 participants