From 6477a27f41ac858f2e012f995a9d9856a3b8acf5 Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Mon, 23 Jan 2006 08:26:14 +0000 Subject: Checking for the property user and username. Fixes #327819. svn path=/trunk/; revision=31274 --- addressbook/gui/component/addressbook.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 289a783da4..454bd9f5b9 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -171,12 +171,18 @@ addressbook_authenticate (EBook *book, gboolean previous_failure, ESource *sourc auth = e_source_get_property (source, "auth"); - if (auth && !strcmp ("ldap/simple-binddn", auth)) + if (auth && !strcmp ("ldap/simple-binddn", auth)) { user = e_source_get_property (source, "binddn"); - else if (auth && !strcmp ("plain/password", auth)) + } + else if (auth && !strcmp ("plain/password", auth)) { user = e_source_get_property (source, "user"); - else + if (!user) { + user = e_source_get_property (source, "username"); + } + } + else { user = e_source_get_property (source, "email_addr"); + } if (!user) user = ""; -- cgit v1.2.3