Add support for SASL v3.2
Review Request #3723 — Created Jan. 2, 2025 and submitted
This just means that we try to re-authenticate when the sasl capability is
advertised via CAP NEW.I also added some logic to ignore the wait counters outside of the initial capability negotiation.
Connected to a local ergo server with authentication turned on and made sure everything worked as expected.
I then disabled authentication and verified the
CAP DEL
message was received but we don't do anything with it.I then re-enabled authentication and verfied we received
CAP NEW
and attempt SASL authentication again.I also connected to the same server when authentication disabled and re-enabled it and verfied that we negotiated SASL properly.
Summary | ID |
---|---|
f863f7e94c8d8fe6b281df7a92116a1f16aa2aae |
Description | From | Last Updated |
---|---|---|
I created IBIS-46 for an issue that looks like it's in this code but I didn't think it was at … |
grim | |
This is a bit troublesome, as if someone calls ibis_capabilities_add_wait before finished, the wait counter won't increment, but if they … |
QuLogic | |
s/This/this/ |
QuLogic | |
Ditto. |
QuLogic | |
Should we break here, or should this be called multiple times in succession? |
QuLogic | |
This comment appears wrong now? |
QuLogic |
-
-
This is a bit troublesome, as if someone calls
ibis_capabilities_add_wait
before finished, the wait counter won't increment, but if they then callibis_capabilities_remove_wait
after finish, it will be decremented. This means the wait counter will be one (or more!) lower than it should be.I have no idea when these are called and could make that happen, but there's currently nothing preventing that situation in here.
-
-
-
- Change Summary:
-
rebased, fixed issues, and reworked the way we ignore wait counters.
This should still wait until Hasl 0.4.0 is released though as the SASL re-authentication doesn't work right without the fixes in Hasl 0.4.0.
- Commits:
-
Summary ID 75a5134de97339a08174dfd0d620c5fcfc1b5b7d 8faa80e15939e3470cc212c8d2adeb9a33d8ce16
- Change Summary:
-
Updated to Hasl 0.4 and used it's new features to make this much easier to follow and implement.
- Commits:
-
Summary ID 8faa80e15939e3470cc212c8d2adeb9a33d8ce16 fc3d71701156a58b8c96727a1f674443d0c79193