--- servers/exchange/lib/e2k-autoconfig.c~ 2007-08-31 16:46:14.000000000 +0530 +++ servers/exchange/lib/e2k-autoconfig.c 2007-08-31 20:28:37.000000000 +0530 @@ -342,7 +342,18 @@ void e2k_autoconfig_set_creds (E2kAutoconfig *ac, E2kCreds *creds) { + char *username, *password, *authmech; ac->creds = creds; + + authmech = creds->http_auth_method (creds); + creds->http_authenticate (creds, authmech, NULL, &username, &password); + + e2k_autoconfig_set_username (ac, username); + e2k_autoconfig_set_password (ac, password); + + /* FIXME: Verify all code paths return strdup'd values */ + g_free (username); + g_free (password); } /*