diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2008-07-10 02:10:44 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2008-07-10 02:10:44 +0000 |
commit | 20f7efddcda3d526571a9defbb081b9591e7e682 (patch) | |
tree | d15e4ced8d608173e9854d2e771cbd86f77a6f4c | |
parent | f73b0eca069689ddac2baa546fb0a0dbd145767b (diff) |
Fix NTLM authentication (Nils Rennebarth).
-rw-r--r-- | smtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |