From 20f7efddcda3d526571a9defbb081b9591e7e682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 10 Jul 2008 02:10:44 +0000 Subject: Fix NTLM authentication (Nils Rennebarth). --- smtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smtp.c b/smtp.c index 818a733..da259ea 100644 --- a/smtp.c +++ b/smtp.c @@ -359,6 +359,9 @@ static int authinteract (auth_client_request_t request, char **result, int field result[i] = identity->user; else if (request[i].flags & AUTH_PASS && identity->pass) result[i] = identity->pass; + else if (request[i].flags & AUTH_REALM) + /* Just supply an empty string for the domain */ + result[i] = identity->user + strlen(identity->user); else return 0; } -- cgit v1.2.3