aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-07-30 18:38:59 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-07-30 18:38:59 +0800
commit9b263e0f378539c3059abe836d5c4143835844db (patch)
tree846d96247810b15db582cf54ebbf7147d6b04ceb /plugins/exchange-operations
parent455d90395da1ab70852e2aabf37f54cad380f245 (diff)
downloadgsoc2013-evolution-9b263e0f378539c3059abe836d5c4143835844db.tar
gsoc2013-evolution-9b263e0f378539c3059abe836d5c4143835844db.tar.gz
gsoc2013-evolution-9b263e0f378539c3059abe836d5c4143835844db.tar.bz2
gsoc2013-evolution-9b263e0f378539c3059abe836d5c4143835844db.tar.lz
gsoc2013-evolution-9b263e0f378539c3059abe836d5c4143835844db.tar.xz
gsoc2013-evolution-9b263e0f378539c3059abe836d5c4143835844db.tar.zst
gsoc2013-evolution-9b263e0f378539c3059abe836d5c4143835844db.zip
** Part of fix for bug #500389
2008-07-30 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #500389 * mail/em-account-editor.c: (emae_option_options_changed), (emae_option_options), (emae_receive_options_extra_item): New ability to define Options (ComboBox) in provider's options. * plugins/exchange-operations/exchange-account-setup.c: (gal_auth_to_string), (owa_authenticate_user): Use default authentication for GAL. Note: Requires EDS revision 9230 or better. svn path=/trunk/; revision=35866
Diffstat (limited to 'plugins/exchange-operations')
-rw-r--r--plugins/exchange-operations/ChangeLog7
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c14
2 files changed, 21 insertions, 0 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog
index 1ab777f81a..6ec12002f3 100644
--- a/plugins/exchange-operations/ChangeLog
+++ b/plugins/exchange-operations/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-30 Milan Crha <mcrha@redhat.com>
+
+ ** Part of fix for bug #500389
+
+ * exchange-account-setup.c: (gal_auth_to_string),
+ (owa_authenticate_user): Use default authentication for GAL.
+
2008-07-11 Bharath Acharya <abharath@novell.com>
** Fix for bug #542149
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c
index 55d3d7c8a1..3e9e64ea6a 100644
--- a/plugins/exchange-operations/exchange-account-setup.c
+++ b/plugins/exchange-operations/exchange-account-setup.c
@@ -413,6 +413,18 @@ print_error (const char *owa_url, E2kAutoconfigResult result)
}
}
+static const char *
+gal_auth_to_string (E2kAutoconfigGalAuthPref ad_auth)
+{
+ switch (ad_auth) {
+ case E2K_AUTOCONFIG_USE_GAL_DEFAULT: return "default";
+ case E2K_AUTOCONFIG_USE_GAL_BASIC: return "basic";
+ case E2K_AUTOCONFIG_USE_GAL_NTLM: return "ntlm";
+ }
+
+ return "default";
+}
+
static void
owa_authenticate_user(GtkWidget *button, EConfig *config)
{
@@ -430,6 +442,7 @@ owa_authenticate_user(GtkWidget *button, EConfig *config)
exchange_params = g_new0 (ExchangeParams, 1);
exchange_params->host = NULL;
exchange_params->ad_server = NULL;
+ exchange_params->ad_auth = E2K_AUTOCONFIG_USE_GAL_DEFAULT;
exchange_params->mailbox = NULL;
exchange_params->owa_path = NULL;
exchange_params->is_ntlm = TRUE;
@@ -487,6 +500,7 @@ owa_authenticate_user(GtkWidget *button, EConfig *config)
camel_url_set_param (url, "ad_server", valid ? exchange_params->ad_server: NULL);
camel_url_set_param (url, "mailbox", valid ? exchange_params->mailbox : NULL);
camel_url_set_param (url, "owa_path", valid ? exchange_params->owa_path : NULL);
+ camel_url_set_param (url, "ad_auth", valid ? gal_auth_to_string (exchange_params->ad_auth) : NULL);
if (mailbox_entry) {
const char *par = camel_url_get_param (url, "mailbox");