From: Timo Sirainen Date: Wed, 20 Aug 2003 03:17:25 +0000 (+0300) Subject: We were posing as IMAP instead of POP3 to auth process. X-Git-Tag: 1.1.alpha1~4414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9d6c7708e4b7812356a79558a62221278392f58;p=thirdparty%2Fdovecot%2Fcore.git We were posing as IMAP instead of POP3 to auth process. --HG-- branch : HEAD --- diff --git a/src/pop3-login/client-authenticate.c b/src/pop3-login/client-authenticate.c index 1e0882cfde..9690f81813 100644 --- a/src/pop3-login/client-authenticate.c +++ b/src/pop3-login/client-authenticate.c @@ -183,7 +183,7 @@ int cmd_pass(struct pop3_client *client, const char *args) buffer_append(client->plain_login, args, strlen(args)); client_ref(client); - if (auth_init_request(AUTH_MECH_PLAIN, AUTH_PROTOCOL_IMAP, + if (auth_init_request(AUTH_MECH_PLAIN, AUTH_PROTOCOL_POP3, login_callback, &client->common, &error)) { /* don't read any input from client until login is finished */ if (client->common.io != NULL) { @@ -287,7 +287,7 @@ int cmd_auth(struct pop3_client *client, const char *args) } client_ref(client); - if (auth_init_request(mech->mech, AUTH_PROTOCOL_IMAP, + if (auth_init_request(mech->mech, AUTH_PROTOCOL_POP3, authenticate_callback, &client->common, &error)) { /* following input data will go to authentication */ if (client->common.io != NULL)