You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I notice there is a sasl_login() method, to which you give one mechanism. The tricky part is to know which mechanism is supported by the server, since (as far as I know) it doesn't tell you. You have to guess, and try a few.
Since the method throws an exception when the mechanism isn't supported, this gets a bit annoying, flow-control wise.
Also, there are no given authentication mechanisms to try. Creating one for CRAM-MD5 wasn't so difficult (see below), but I expect that I will need a few more, if I want to connect to other servers than just my own.
Is there some help available to try to iterate over several login methods and their associated mechanism code?
Here is a CRAM-MD5 implementation that worked for me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! I notice there is a
sasl_login()
method, to which you give one mechanism. The tricky part is to know which mechanism is supported by the server, since (as far as I know) it doesn't tell you. You have to guess, and try a few.Since the method throws an exception when the mechanism isn't supported, this gets a bit annoying, flow-control wise.
Also, there are no given authentication mechanisms to try. Creating one for CRAM-MD5 wasn't so difficult (see below), but I expect that I will need a few more, if I want to connect to other servers than just my own.
Is there some help available to try to iterate over several login methods and their associated mechanism code?
Here is a CRAM-MD5 implementation that worked for me.
Beta Was this translation helpful? Give feedback.
All reactions