ekiga r7197 - in trunk: . lib/engine/addressbook/ldap



Author: jpuydt
Date: Sun Oct 12 05:59:50 2008
New Revision: 7197
URL: http://svn.gnome.org/viewvc/ekiga?rev=7197&view=rev

Log:
Fixed bug #555945

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	Sun Oct 12 05:59:50 2008
@@ -286,7 +286,9 @@
     }
   }
   if (upgrade_config) {
+
     if (!uri_node) {
+
       LDAPURLDesc *url_tmp = NULL;
       char *url_str;
       std::string new_uri;
@@ -295,8 +297,7 @@
       new_uri = std::string("ldap://";) + hostname;
       if (!port.empty())
         new_uri += std::string(":") + port;
-      new_uri += "/?" + call_attribute + "?" +
-        scope;
+      new_uri += "/?cn" + call_attribute + "?" + scope;
       ldap_url_parse (new_uri.c_str(), &url_tmp);
       url_tmp->lud_dn = (char *)base.c_str();
       url_str = ldap_url_desc2str (url_tmp);
@@ -307,22 +308,27 @@
       ldap_free_urldesc (url_tmp);
     }
     if (hostname_node) {
+
 	xmlUnlinkNode (hostname_node);
         xmlFreeNode (hostname_node);
     }
     if (port_node) {
+
 	xmlUnlinkNode (port_node);
         xmlFreeNode (port_node);
     }
     if (base_node) {
+
 	xmlUnlinkNode (base_node);
         xmlFreeNode (base_node);
     }
     if (scope_node) {
+
 	xmlUnlinkNode (scope_node);
         xmlFreeNode (scope_node);
     }
     if (call_attribute_node) {
+
 	xmlUnlinkNode (call_attribute_node);
         xmlFreeNode (call_attribute_node);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]