mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ldap_url_search should use hostport of URL.
This commit is contained in:
parent
026a23fb81
commit
174c6abfe2
@ -153,8 +153,7 @@ skip_url_prefix(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* skip leading "URL:" (if any) */
|
/* skip leading "URL:" (if any) */
|
||||||
if ( strncasecmp( p, LDAP_URL_URLCOLON, LDAP_URL_URLCOLON_LEN ) == 0 )
|
if ( strncasecmp( p, LDAP_URL_URLCOLON, LDAP_URL_URLCOLON_LEN ) == 0 ) {
|
||||||
{
|
|
||||||
p += LDAP_URL_URLCOLON_LEN;
|
p += LDAP_URL_URLCOLON_LEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -895,9 +894,7 @@ ldap_url_search( LDAP *ld, LDAP_CONST char *url, int attrsonly )
|
|||||||
bind.ri_url = (char *)url;
|
bind.ri_url = (char *)url;
|
||||||
err = ldap_send_server_request(
|
err = ldap_send_server_request(
|
||||||
ld, ber, ld->ld_msgid, NULL,
|
ld, ber, ld->ld_msgid, NULL,
|
||||||
(ludp->lud_host != NULL || ludp->lud_port != 0)
|
NULL, NULL, &bind );
|
||||||
? ludp : NULL,
|
|
||||||
NULL, &bind );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ldap_free_urldesc( ludp );
|
ldap_free_urldesc( ludp );
|
||||||
|
Loading…
Reference in New Issue
Block a user