[PATCH v3 7/7] wldap32: supply our username as SASL_CB_AUTHNAME too

Damjan Jovanovic damjan.jov at gmail.com
Thu Feb 18 10:50:02 CST 2021


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.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50572
Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
---
 dlls/wldap32/bind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
diff --git a/dlls/wldap32/bind.c b/dlls/wldap32/bind.c
index 1498dc49fe6..fa18b9597a7 100644
--- a/dlls/wldap32/bind.c
+++ b/dlls/wldap32/bind.c
@@ -198,7 +198,7 @@ static int sasl_interact( LDAP *ld, unsigned flags, void *defaults, void *intera
             sasl->result = id->Domain;
             sasl->len = id->DomainLength;
         }
-        else if (sasl->id == SASL_CB_USER)
+        else if (sasl->id == SASL_CB_AUTHNAME || sasl->id == SASL_CB_USER)
         {
             sasl->result = id->User;
             sasl->len = id->UserLength;


More information about the wine-devel mailing list