Browse Source

fix SASL PLAIN for User != $USER

REFMAIL: 87d29mysnx.fsf@ericabrahamsen.net
Oswald Buddenhagen 10 years ago
parent
commit
138983c91e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/drv_imap.c

+ 2 - 2
src/drv_imap.c

@@ -1775,7 +1775,7 @@ ensure_password( imap_server_conf_t *srvc )
 #ifdef HAVE_LIBSASL
 #ifdef HAVE_LIBSASL
 
 
 static sasl_callback_t sasl_callbacks[] = {
 static sasl_callback_t sasl_callbacks[] = {
-	{ SASL_CB_USER,     NULL, NULL },
+	{ SASL_CB_AUTHNAME, NULL, NULL },
 	{ SASL_CB_PASS,     NULL, NULL },
 	{ SASL_CB_PASS,     NULL, NULL },
 	{ SASL_CB_LIST_END, NULL, NULL }
 	{ SASL_CB_LIST_END, NULL, NULL }
 };
 };
@@ -1789,7 +1789,7 @@ process_sasl_interact( sasl_interact_t *interact, imap_server_conf_t *srvc )
 		switch (interact->id) {
 		switch (interact->id) {
 		case SASL_CB_LIST_END:
 		case SASL_CB_LIST_END:
 			return 0;
 			return 0;
-		case SASL_CB_USER:
+		case SASL_CB_AUTHNAME:
 			val = ensure_user( srvc );
 			val = ensure_user( srvc );
 			break;
 			break;
 		case SASL_CB_PASS:
 		case SASL_CB_PASS: