[Dovecot] [PATCH 10/10] NTLM, pop3 kludge
Andrey Panin
pazke at donpac.ru
Tue Jul 27 16:18:55 EEST 2004
This patch is needed to allow MS Outlook to use NTLM authentication with POP3.
Sometimes this kludge is called "old-style SASL discovery".
src/pop3-login/client-authenticate.c | 7 +++++++
1 files changed, 7 insertions(+)
diff -urpNX /usr/share/dontdiff dovecot-1.0-test30.vanilla/src/pop3-login/client-authenticate.c dovecot-1.0-test30/src/pop3-login/client-authenticate.c
--- dovecot-1.0-test30.vanilla/src/pop3-login/client-authenticate.c 2004-07-27 10:03:24.000000000 +0400
+++ dovecot-1.0-test30/src/pop3-login/client-authenticate.c 2004-07-27 10:06:15.000000000 +0400
@@ -289,6 +289,13 @@ int cmd_auth(struct pop3_client *client,
args = p+1;
}
+ if (mech_name && !*mech_name && auth_client_find_mech(auth_client, "NTLM")) {
+ client_send_line(client, "+OK");
+ client_send_line(client, "NTLM");
+ client_send_line(client, ".");
+ return TRUE;
+ }
+
mech = auth_client_find_mech(auth_client, mech_name);
if (mech == NULL) {
client_send_line(client,
More information about the dovecot
mailing list