summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2008-07-10 02:10:44 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2008-07-10 02:10:44 +0000
commit20f7efddcda3d526571a9defbb081b9591e7e682 (patch)
treed15e4ced8d608173e9854d2e771cbd86f77a6f4c
parentf73b0eca069689ddac2baa546fb0a0dbd145767b (diff)
Fix NTLM authentication (Nils Rennebarth).
-rw-r--r--smtp.c3
1 files changed, 3 insertions, 0 deletions
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;
}