mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Use ldap_pvt_url_scheme2tls() to test for ldaps://
This commit is contained in:
parent
185641cb12
commit
60d6c13d73
@ -218,7 +218,7 @@ static Listener * open_listener( const char* url )
|
||||
}
|
||||
|
||||
#ifndef HAVE_TLS
|
||||
if( ldap_is_ldaps_url( url ) ) {
|
||||
if( ldap_pvt_url_scheme2tls( lud->lud_scheme ) ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"daemon: TLS not supported (%s)\n",
|
||||
url, 0, 0 );
|
||||
@ -231,7 +231,7 @@ static Listener * open_listener( const char* url )
|
||||
}
|
||||
|
||||
#else
|
||||
l.sl_is_tls = ldap_is_ldaps_url( url );
|
||||
l.sl_is_tls = ldap_pvt_url_scheme2tls( lud->lud_scheme );
|
||||
|
||||
if(! lud->lud_port ) {
|
||||
lud->lud_port = l.sl_is_tls ? LDAPS_PORT : LDAP_PORT;
|
||||
|
Loading…
Reference in New Issue
Block a user