npgsql: AuthenticateSASL with bouncer error
Hi!
After migrating to .Net 5 (maybe this is not the reason) we start having error while connecting through bouncer.
If we are connecting direct to main instance AuthenticateSASL work as expected but when we are using bouncer port everything stop working at
var saslFinalServerMsg = Expect<AuthenticationSASLFinalMessage>(await ReadMessage(async), this);
with 08P01: SASL authentication failed error.
What can be reason for this behavior?
Thanks!
We have this error both at 5.0.1 and 5.0.2 while everything looks fine at 3.1.4 and 3.1.6
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (12 by maintainers)
The point being, this exact problem was fixed with version 1.12
So the reason is in incorrect ?: operator:
it should be like
Should I create pull request to fix it?
So I verified code and RFC 5802 and it looks that code is perfect aligned with document.
It looks like 3.1.x versions did not implement channel binding and always provide hard coded “n”.
So I hope upgrading bouncer version will solve this problem.
@vonzshik Nikita, thank you for help!
Uh, I tried at some point to release a new patch version each month, but for now this duty belongs to @roji only. Therefore, there’re two options for you from our side:
@roji sure, why not.
Note, that from PG documentation,
08P01isprotocol_violationerror.Just checked https://github.com/npgsql/npgsql/commit/e88a2da745322b8fd60e320e34ca641655ec9bed commit and can’t see any problems with new code.
I will try build and debug from sources, may be I will find out where problem is.