Commit ea68033f authored by Niels Möller's avatar Niels Möller
Browse files

(lsh_login_command): Try the "none" authentication method.

Rev: src/lsh.c:1.143
parent dca35590
......@@ -501,17 +501,22 @@ DEFINE_COMMAND2(lsh_login_command)
struct client_userauth_method *password
= make_client_password_auth(options->super.tty);
/* FIXME: Perhaps we should try "none" only when using SRP. */
struct client_userauth_method *none
= make_client_none_auth();
COMMAND_RETURN(c,
make_client_userauth
(ssh_format("%lz", options->super.user),
ATOM_SSH_CONNECTION,
(LIST_LENGTH(keys)
? make_object_list
(2,
(3,
none,
make_client_publickey_auth(keys),
password,
-1)
: make_object_list(1, password, -1))));
: make_object_list(2, none, password, -1))));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment