ekiga r7193 - in trunk: . lib/engine/addressbook/ldap
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7193 - in trunk: . lib/engine/addressbook/ldap
- Date: Sat, 11 Oct 2008 19:37:38 +0000 (UTC)
Author: jpuydt
Date: Sat Oct 11 19:37:38 2008
New Revision: 7193
URL: http://svn.gnome.org/viewvc/ekiga?rev=7193&view=rev
Log:
Fixed bug #555939.
Modified:
trunk/ChangeLog
trunk/lib/engine/addressbook/ldap/ldap-book.cpp
Modified: trunk/lib/engine/addressbook/ldap/ldap-book.cpp
==============================================================================
--- trunk/lib/engine/addressbook/ldap/ldap-book.cpp (original)
+++ trunk/lib/engine/addressbook/ldap/ldap-book.cpp Sat Oct 11 19:37:38 2008
@@ -680,7 +680,7 @@
if (bookinfo.sasl) {
interctx ctx;
-
+
ctx.book = this;
ctx.authcID = bookinfo.authcID;
ctx.password = bookinfo.password;
@@ -787,7 +787,10 @@
} else {
fterm = "*";
}
- filter = std::string (bookinfo.urld->lud_filter);
+ if (bookinfo.urld->lud_filter != NULL)
+ filter = std::string (bookinfo.urld->lud_filter);
+ else
+ filter="";
pos = 0;
while ((pos=filter.find('$', pos)) != std::string::npos) {
filter.replace (pos, 1, fterm);
@@ -926,7 +929,10 @@
}
request.text ("nameAttr", _("_DisplayName Attribute"), info.urld->lud_attrs[0]);
request.text ("callAttr", _("Call _Attributes"), callAttr);
- request.text ("filter", _("_Filter Template"), info.urld->lud_filter);
+ if (info.urld->lud_filter != NULL)
+ request.text ("filter", _("_Filter Template"), info.urld->lud_filter);
+ else
+ request.text ("filter", _("_Filter Template"), "");
request.text ("authcID", _("Bind _ID"), info.authcID);
request.private_text ("password", _("_Password"), info.password);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]