mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +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) */
|
||||
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;
|
||||
}
|
||||
|
||||
@ -895,9 +894,7 @@ ldap_url_search( LDAP *ld, LDAP_CONST char *url, int attrsonly )
|
||||
bind.ri_url = (char *)url;
|
||||
err = ldap_send_server_request(
|
||||
ld, ber, ld->ld_msgid, NULL,
|
||||
(ludp->lud_host != NULL || ludp->lud_port != 0)
|
||||
? ludp : NULL,
|
||||
NULL, &bind );
|
||||
NULL, NULL, &bind );
|
||||
}
|
||||
|
||||
ldap_free_urldesc( ludp );
|
||||
|
Loading…
Reference in New Issue
Block a user