Skip to content

Commit

Permalink
Merge pull request #282 from nodogsplash/ForwardAuthentication
Browse files Browse the repository at this point in the history
Add FAS and Binauth to ndsctl status
  • Loading branch information
bluewavenet committed Sep 1, 2018
2 parents 5c98414 + 6ecb462 commit 09b2116
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,22 @@ ndsctl_status(FILE *fp)
fprintf(fp, "Managed interface: %s\n", config->gw_interface);
fprintf(fp, "Managed IP range: %s\n", config->gw_iprange);
fprintf(fp, "Server listening: %s:%d\n", config->gw_address, config->gw_port);

if (config->binauth) {
fprintf(fp, "Binauth Script: %s\n", config->binauth);
} else {
fprintf(fp, "Binauth: Disabled\n");
}

if (config->fas_port) {
fprintf(fp, "FAS: Secure=%u URL: http://%s:%u%s\n",
config->fas_secure_enabled,
config->fas_remoteip ? config->fas_remoteip : config->gw_address,
config->fas_port, config->fas_path);
} else {
fprintf(fp, "FAS: Disabled\n");
}

fprintf(fp, "Client Check Interval: %ds\n", config->checkinterval);
fprintf(fp, "Preauth Idle Timeout: %dm\n", config->preauth_idle_timeout);
fprintf(fp, "Auth Idle Timeout: %dm\n", config->auth_idle_timeout);
Expand Down

0 comments on commit 09b2116

Please sign in to comment.