multi-step auth: don't advertise password method if it is disabled

also rename the settings to password_authentication so it is more like
OpenSSH, add some test cases and improve documentation
This commit is contained in:
Nicola Murino
2020-09-01 19:34:40 +02:00
parent 8391b19abb
commit a59163e56c
6 changed files with 76 additions and 33 deletions

View File

@@ -72,6 +72,7 @@ func init() {
LoginBannerFile: "",
EnabledSSHCommands: sftpd.GetDefaultSSHCommands(),
KeyboardInteractiveHook: "",
PasswordAuthentication: true,
},
FTPD: ftpd.Configuration{
BindPort: 0,