Skip to content
Snippets Groups Projects
Commit f57f475e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add the SSH "ANYAUTH" toggle option

If the sysop wants their login module to always execute for SSH connections,
set to this "Any" rather than the default ("Valid Key or Username").
parent ca6e65df
No related branches found
No related tags found
No related merge requests found
Pipeline #6067 passed
......@@ -401,6 +401,8 @@ static void ssh_srvr_cfg(bbs_startup_t* startup)
,startup->options & BBS_OPT_ALLOW_SSH ? iniLogLevelStringList()[startup->ssh_error_level] : "N/A");
snprintf(opt[i++], MAX_OPLN, "%-30s%s", "File Transfer (SFTP) Support"
,startup->options & BBS_OPT_ALLOW_SSH ? (startup->options & BBS_OPT_ALLOW_SFTP ? "Yes" : "No") : "N/A");
snprintf(opt[i++], MAX_OPLN, "%-30s%s", "User Authentication Type"
,startup->options & BBS_OPT_ALLOW_SSH ? (startup->options & BBS_OPT_SSH_ANYAUTH ? "Any" : "Valid Key or Username") : "N/A");
snprintf(opt[i++], MAX_OPLN, "%-30s%s", "Max SFTP Inactivity"
,(startup->options & BBS_OPT_ALLOW_SSH) && (startup->options & BBS_OPT_ALLOW_SFTP) ? vduration(startup->max_sftp_inactivity) : "N/A");
......@@ -446,6 +448,11 @@ static void ssh_srvr_cfg(bbs_startup_t* startup)
startup->options ^= BBS_OPT_ALLOW_SFTP;
break;
case 6:
if(!(startup->options & BBS_OPT_ALLOW_SSH))
break;
startup->options ^= BBS_OPT_SSH_ANYAUTH;
break;
case 7:
if(!(startup->options & BBS_OPT_ALLOW_SSH))
break;
if(!(startup->options & BBS_OPT_ALLOW_SFTP))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment