aboutsummaryrefslogtreecommitdiffstats
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
parent54a4ffe22bcf2cc25f9bf7465b57597e429b2512 (diff)
downloadgsoc2013-evolution-e2c690659c49a63624c6f897ddaa0b501768423b.tar
gsoc2013-evolution-e2c690659c49a63624c6f897ddaa0b501768423b.tar.gz
gsoc2013-evolution-e2c690659c49a63624c6f897ddaa0b501768423b.tar.bz2
gsoc2013-evolution-e2c690659c49a63624c6f897ddaa0b501768423b.tar.lz
gsoc2013-evolution-e2c690659c49a63624c6f897ddaa0b501768423b.tar.xz
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
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/addressbook-config.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 24d104a715..0a59445fdd 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-13 Sushma Rai <rsushma@novell.com>
+
+ * gui/component/addressbook-config.c (do_ldap_root_dse_query): Checking
+ for naming context value.
+
2005-08-10 Tor Lillqvist <tml@novell.com>
* importers/Makefile.am: Use privsolib instead of privlib (no
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;
}