On Fri, 2021-02-19 at 13:46 +0300, Dmitry Timoshkov wrote:
Hans Leidekker hans@codeweavers.com wrote:
On Thu, 2021-02-18 at 18:50 +0200, Damjan Jovanovic wrote:
Try 3 gives up the attempt to provide credentials in an authentication method specific form, and just provides our username as the authentication username (SASL_CB_AUTHNAME) too.
It doesn't work here. This clearly depends on the mechanism used, so I think the previous approach was better.
Could you provide more details? What doesn't work? What kind of authentication method and LDAP server are you using? Does adding KRB5_TRACE reveal anything?
GSSAPI and standard AD server. More details here: https://www.winehq.org/pipermail/wine-devel/2021-January/179973.html
How did it work before? Not providing user name on SASL_CB_USER is clearly wrong.
It didn't work before. It's not wrong to provide an empty username for SASL_CB_USER because it's only used in proxy authentication schemes. See https://www.cyrusimap.org/sasl/sasl/developer/programming.html
SASL_CB_USER supplies the user acting for, SASL_CB_AUTHNAME supplies the authenticating user.