Skip to content
Snippets Groups Projects
Commit 60d6c13d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Use ldap_pvt_url_scheme2tls() to test for ldaps://

parent 185641cb
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment