aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-08-13 14:22:23 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-08-13 14:22:23 +0800
commite2c690659c49a63624c6f897ddaa0b501768423b (patch)
tree160ae41a35c5ced687e8563b50299ea7b9978e9c /addressbook/gui/component
parent54a4ffe22bcf2cc25f9bf7465b57597e429b2512 (diff)
downloadgsoc2013-evolution-e2c690659c49a63624c6f897ddaa0b501768423b.tar.gz
gsoc2013-evolution-e2c690659c49a63624c6f897ddaa0b501768423b.tar.zst
gsoc2013-evolution-e2c690659c49a63624c6f897ddaa0b501768423b.zip
Proper Checking for naming context value. Now pops up the error
when user tries to find supported search bases in ldap address book configuration dialog, in case he has not set naming context. svn path=/trunk/; revision=30102
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index ccded216f2..a9e4255308 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -347,7 +347,7 @@ do_ldap_root_dse_query (AddressbookSourceDialog *sdialog, GtkListStore *model, E
goto fail;
values = ldap_get_values (ldap, resp, "namingContexts");
- if (!values || values[0] == NULL) {
+ if (!values || values[0] == NULL || strlen (values[0]) == 0) {
e_error_run (GTK_WINDOW (sdialog->window), "addressbook:ldap-search-base", NULL);
goto fail;
}