17674N/A /* Now that we've resolved our address, connect via IP */
17674N/A- url = g_strdup_printf ("ldap://%s:%u", soup_address_get_physical (lop->addr), port);
17674N/A- ldap_initialize (&(lop->ldap), url);
17674N/A+ lop->ldap = ldap_init (soup_address_get_physical (lop->addr), port);
17674N/A g_return_if_fail (lop->ldap != NULL);
17674N/A /* No async DNS resolve, let libldap handle resolving synchronously */
17674N/A- ldap_initialize (&(lop->ldap), server);
17674N/A+ lop->ldap = ldap_init (server, port);
17674N/A g_return_if_fail (lop->ldap != NULL);
17674N/A g_return_val_if_fail (uri && *uri, FALSE);
17674N/A r = ldap_url_parse (uri, &url);
17674N/A /* Some checks to make sure it's a simple URI */
17674N/A if (!(url->lud_host && url->lud_host[0]) ||
17674N/A g_return_val_if_fail (uri && *uri, FALSE);
17674N/A- r = ldap_url_parse (uri, &url);
17674N/A+ if (strchr (uri, '\/') != strrchr (uri, '\/'))
17674N/A+ r = ldap_url_parse_nodn (uri, &url);
17674N/A+ r = ldap_url_parse (uri, &url);
17674N/A /* Some checks to make sure it's a simple URI */