diff --git a/src/drv_imap.c b/src/drv_imap.c index 72a8fd1..2961769 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1780,6 +1780,7 @@ ensure_password( imap_server_conf_t *srvc ) #ifdef HAVE_LIBSASL static sasl_callback_t sasl_callbacks[] = { + { SASL_CB_USER, NULL, NULL }, { SASL_CB_AUTHNAME, NULL, NULL }, { SASL_CB_PASS, NULL, NULL }, { SASL_CB_LIST_END, NULL, NULL } @@ -1794,6 +1795,7 @@ process_sasl_interact( sasl_interact_t *interact, imap_server_conf_t *srvc ) switch (interact->id) { case SASL_CB_LIST_END: return 0; + case SASL_CB_USER: case SASL_CB_AUTHNAME: val = ensure_user( srvc ); break;