From 120e49b26b8536d012c6733e86c78f8744615e5c Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 11 Oct 2014 08:28:04 +0200 Subject: [PATCH] only enable session control when a username/password authentication is used --- src/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 21d6d467..2721a45e 100644 --- a/src/config.c +++ b/src/config.c @@ -450,7 +450,9 @@ unsigned force_cert_auth; if (config->occtl_socket_file == NULL) config->occtl_socket_file = talloc_strdup(config, OCCTL_UNIX_SOCKET); - READ_TF("session-control", config->session_control, 0); + if (config->auth_types & AUTH_TYPE_USERNAME_PASS) { + READ_TF("session-control", config->session_control, 0); + } READ_STRING("banner", config->banner); READ_TF("cisco-client-compat", config->cisco_client_compat, 0);