version 1.21, 2022/05/27 04:29:40 |
version 1.22, 2024/05/17 00:30:23 |
|
|
|
|
/* import */ |
/* import */ |
extern ServerOptions options; |
extern ServerOptions options; |
|
extern struct authmethod_cfg methodcfg_passwd; |
|
|
static int |
static int |
userauth_passwd(struct ssh *ssh, const char *method) |
userauth_passwd(struct ssh *ssh, const char *method) |
|
|
|
|
if (change) |
if (change) |
logit("password change not supported"); |
logit("password change not supported"); |
else if (PRIVSEP(auth_password(ssh, password)) == 1) |
else if (mm_auth_password(ssh, password) == 1) |
authenticated = 1; |
authenticated = 1; |
freezero(password, len); |
freezero(password, len); |
return authenticated; |
return authenticated; |
} |
} |
|
|
Authmethod method_passwd = { |
Authmethod method_passwd = { |
"password", |
&methodcfg_passwd, |
NULL, |
|
userauth_passwd, |
userauth_passwd, |
&options.password_authentication |
|
}; |
}; |