[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Error on ldap_url_search_s() (ITS#1429)
Full_Name: Andre Grueneberg
Version: 2.0.15
OS: FreeBSD
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (141.45.5.141)
When using ldap_url_search_s() with a perfectly valid URL, I always get back
"Can't contact LDAP server" when I'm not ldap_bind()ed
The attached patch helped, but I'm unsure about whether this breaks bound
connections. [this patch is against 2.0.18]
--- url.c 2001/08/13 12:10:21 1.2
+++ libraries/libldap/url.c 2001/11/07 17:21:12
@@ -924,12 +924,16 @@
if ( ber == NULL ) {
err = -1;
} else {
+#if 0
bind.ri_request = LDAP_REQ_SEARCH;
bind.ri_msgid = ld->ld_msgid;
bind.ri_url = (char *)url;
err = ldap_send_server_request(
ld, ber, ld->ld_msgid, NULL,
NULL, NULL, &bind );
+#endif
+ err = ldap_send_initial_request(
+ ld, LDAP_REQ_SEARCH, ludp->lud_dn, ber );
}