mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
remove UNSPECIFIED_TLS... HOST implies ldap://
This commit is contained in:
parent
9c4c8e8c1f
commit
9ac0eab126
3 changed files with 1 additions and 4 deletions
|
|
@ -501,7 +501,6 @@ typedef struct ldap_url_desc {
|
|||
|
||||
/* lud_properties */
|
||||
#define LDAP_URL_USE_SSL 0x00000001
|
||||
#define LDAP_URL_USE_SSL_UNSPECIFIED 0x00000002
|
||||
|
||||
/* lud_protocol */
|
||||
#define LDAP_PROTO_TCP 0x00
|
||||
|
|
|
|||
|
|
@ -310,8 +310,6 @@ open_ldap_connection( LDAP *ld, Sockbuf *sb, LDAPURLDesc *srv,
|
|||
|
||||
#ifdef HAVE_TLS
|
||||
tls = (srv->lud_properties & LDAP_URL_USE_SSL);
|
||||
if (tls == 0)
|
||||
tls = (srv->lud_properties & LDAP_URL_USE_SSL_UNSPECIFIED);
|
||||
|
||||
if ( tls != 0 ) {
|
||||
rc = ldap_pvt_tls_start( sb, ld->ld_options.ldo_tls_ctx );
|
||||
|
|
|
|||
|
|
@ -592,7 +592,7 @@ ldap_url_parsehosts (LDAPURLDesc **ludlist, const char *hosts )
|
|||
}
|
||||
ldap_pvt_hex_unescape(ludp->lud_host);
|
||||
ludp->lud_protocol = LDAP_PROTO_TCP;
|
||||
ludp->lud_properties = LDAP_URL_USE_SSL_UNSPECIFIED;
|
||||
ludp->lud_properties = 0;
|
||||
ludp->lud_next = *ludlist;
|
||||
*ludlist = ludp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue