Index: plugins/exchange-operations/exchange-account-setup.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/exchange-operations/exchange-account-setup.c,v
retrieving revision 1.28
diff -u -p -r1.28 exchange-account-setup.c
--- plugins/exchange-operations/exchange-account-setup.c	6 Jan 2006 06:49:25 -0000	1.28
+++ plugins/exchange-operations/exchange-account-setup.c	19 Jan 2006 13:14:40 -0000
@@ -66,7 +66,7 @@ CamelServiceAuthType camel_exchange_ntlm
         N_("This option will connect to the Exchange server using "
            "secure password (NTLM) authentication."),
 
-        "",
+        "NTLM",
         TRUE
 };
 
@@ -802,7 +802,7 @@ org_gnome_exchange_auth_section (EPlugin
 {
 	EMConfigTargetAccount *target_account;
 	const char *source_url; 
-	char *label_text;
+	char *label_text, *exchange_account_authtype = NULL;
 	CamelURL *url;
 	GtkWidget *hbox, *button, *auth_label, *vbox, *label_hide;
 	GtkComboBox *dropdown;
@@ -810,7 +810,8 @@ org_gnome_exchange_auth_section (EPlugin
 	GtkListStore *store;
 	int i, active=0, auth_changed_id = 0;
 	GList *authtypes, *l, *ll;
-	
+	ExchangeAccount *account;
+
 	target_account = (EMConfigTargetAccount *)data->config->target;
 	source_url = e_account_get_string (target_account->account, 
 					   E_ACCOUNT_SOURCE_URL);
@@ -828,6 +829,10 @@ org_gnome_exchange_auth_section (EPlugin
 		return data->old;
 	}
 
+	account = exchange_operations_get_exchange_account ();
+	if (account)
+		exchange_account_authtype = exchange_account_get_authtype (account);
+
 	vbox = gtk_vbox_new (FALSE, 6);
 
 	label_text = g_strdup_printf("<b>%s</b>", _("Authentication Type"));
@@ -865,8 +870,18 @@ org_gnome_exchange_auth_section (EPlugin
 		gtk_list_store_set (store, &iter, 0, authtype->name, 1, 
 				    authtype, 2, !avail, -1);
 
-		if (url && url->authmech && !strcmp(url->authmech, authtype->authproto))
+		if (url && url->authmech && !strcmp(url->authmech, authtype->authproto)) {
 			active = i;
+		}
+		else if (url && exchange_account_authtype && 
+			 !strcmp (exchange_account_authtype, authtype->authproto)) {
+			/* if the url doesn't contain authmech, read the value from 
+			 * exchange account and set the tab and 
+			 * also set the authmech back to url 
+			 */
+			camel_url_set_authmech (url, exchange_account_authtype);
+			active = i;
+		}
 	}
 
 	gtk_combo_box_set_model (dropdown, (GtkTreeModel *)store);
@@ -904,6 +919,7 @@ org_gnome_exchange_auth_section (EPlugin
 	if (url)
 		camel_url_free(url);
 	g_list_free (authtypes);
+	g_free (exchange_account_authtype);
 
 	return vbox;
 }
Index: plugins/exchange-operations/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/exchange-operations/ChangeLog,v
retrieving revision 1.86
diff -u -p -r1.86 ChangeLog
--- plugins/exchange-operations/ChangeLog	18 Jan 2006 12:55:50 -0000	1.86
+++ plugins/exchange-operations/ChangeLog	19 Jan 2006 13:38:16 -0000
@@ -1,3 +1,13 @@
+2006-01-19  Sushma Rai  <rsushma@novell.com>
+
+	* exchange-account-setup.c (camel_exchange_ntlm): Setting the authproto
+	value to NTLM, which is used later. 
+	(org_gnome_exchange_auth_section): Reading the auth type from 
+	ExchangeAccount and setting it in URL if the url doesn't contain the
+	auth mechanism value. Since the auth mechanism is not set using the 
+	authentication type tab in druid during account setup, when the editor
+	is invoked, it doesn't get set in the account URI. Fixes #327284.
+
 2006-01-18  Sushma Rai  <rsushma@novell.com>
 
 	* exchange-contacts.c (e_exchange_contacts_pcontacts): Displaying the
