Skip to content

Commit

Permalink
Merge pull request #422 from nodogsplash/4.0.3beta
Browse files Browse the repository at this point in the history
faskey: exit gracefully if not set and fas_secure_enabled =2
  • Loading branch information
bluewavenet committed Aug 23, 2019
2 parents e3626b3 + 9a6c644 commit 5faa91c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,11 @@ main_loop(void)
if (config->fas_secure_enabled == 0) {
debug(LOG_NOTICE, "Warning - Forwarding Authentication - Security is DISABLED.\n");
}

if (config->fas_secure_enabled == 2 && config->fas_key == NULL) {
debug(LOG_ERR, "Error - faskey is not set - exiting...\n");
exit(1);
}
}

if (config->binauth) {
Expand Down

0 comments on commit 5faa91c

Please sign in to comment.