Lines Matching defs:authctxt
84 auth_password(Authctxt *authctxt, const char *password)
86 struct passwd * pw = authctxt->pw;
87 int result, ok = authctxt->valid;
104 int ret = auth_krb5_password(authctxt, password);
122 return (sshpam_auth_passwd(authctxt, password) && ok);
127 if (auth_shadow_pwexpired(authctxt))
128 authctxt->force_pwchange = 1;
131 result = sys_auth_passwd(authctxt, password);
132 if (authctxt->force_pwchange)
139 warn_expiry(Authctxt *authctxt, auth_session_t *as)
149 if (authctxt->valid) {
173 sys_auth_passwd(Authctxt *authctxt, const char *password)
175 struct passwd *pw = authctxt->pw;
179 as = auth_usercheck(pw->pw_name, authctxt->style, "auth-ssh",
186 authctxt->force_pwchange = 1;
191 warn_expiry(authctxt, as);
198 sys_auth_passwd(Authctxt *authctxt, const char *password)
200 struct passwd *pw = authctxt->pw;
203 /* Just use the supplied fake password if authctxt is invalid */
204 char *pw_password = authctxt->valid ? shadow_pw(pw) : pw->pw_passwd;
214 if (authctxt->valid && pw_password[0] && pw_password[1])