=== modified file 'servers/exchange/lib/e2k-autoconfig.c' --- servers/exchange/lib/e2k-autoconfig.c 2007-12-18 18:57:46 +0000 +++ servers/exchange/lib/e2k-autoconfig.c 2007-12-18 18:58:09 +0000 @@ -343,7 +343,18 @@ 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); } /*