From e2c690659c49a63624c6f897ddaa0b501768423b Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Sat, 13 Aug 2005 06:22:23 +0000 Subject: 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 --- addressbook/gui/component/addressbook-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui') 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; } -- cgit