diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2005-08-13 14:22:23 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2005-08-13 14:22:23 +0800 |
commit | e2c690659c49a63624c6f897ddaa0b501768423b (patch) | |
tree | 160ae41a35c5ced687e8563b50299ea7b9978e9c /addressbook | |
parent | 54a4ffe22bcf2cc25f9bf7465b57597e429b2512 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-config.c | 2 |
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; } |