From: Nick Porter Date: Thu, 18 Jul 2024 08:07:58 +0000 (+0100) Subject: Set the default port to LDAPS_PORT if scheme is ldaps:// X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d85b6dd8336be6b484acfbd9f0b6fba5e5d9d5;p=thirdparty%2Ffreeradius-server.git Set the default port to LDAPS_PORT if scheme is ldaps:// --- diff --git a/src/lib/ldap/util.c b/src/lib/ldap/util.c index 77eed445b70..1442c36a587 100644 --- a/src/lib/ldap/util.c +++ b/src/lib/ldap/util.c @@ -656,6 +656,7 @@ int fr_ldap_server_url_check(fr_ldap_config_t *handle_config, char const *server cf_log_err(ci, "ldaps:// scheme is not compatible with 'start_tls'"); goto ldap_url_error; } + default_port = LDAPS_PORT; handle_config->tls_mode = LDAP_OPT_X_TLS_HARD; } else if (strcmp(ldap_url->lud_scheme, "ldapi") == 0) { set_port_maybe = false;