failing PAM session modules to user then exit, similar to the way
/etc/nologin is handled. ok djm@
- (dtucker) [auth-pam.c] Relocate sshpam_store_conv(), no code change.
+ - (djm) [auth2-kbdint.c auth2-none.c auth2-passwd.c auth2-pubkey.c]
+ Make cygwin code more consistent with that which surrounds it
20040830
- (dtucker) [session.c openbsd-compat/bsd-cygwin_util.{c,h}] Bug #915: only
xfree(lang);
#ifdef HAVE_CYGWIN
if (check_nt_auth(0, authctxt->pw) == 0)
- return(0);
+ authenticated = 0;
#endif
return authenticated;
}
userauth_banner();
#ifdef HAVE_CYGWIN
if (check_nt_auth(1, authctxt->pw) == 0)
- return(0);
+ return (0);
#endif
if (options.password_authentication)
return (PRIVSEP(auth_password(authctxt, "")));
if (change)
logit("password change not supported");
- else if (PRIVSEP(auth_password(authctxt, password)) == 1
+ else if (PRIVSEP(auth_password(authctxt, password)) == 1)
+ authenticated = 1;
#ifdef HAVE_CYGWIN
- && check_nt_auth(1, authctxt->pw)
+ if (check_nt_auth(1, authctxt->pw) == 0)
+ authenticated = 0;
#endif
- )
- authenticated = 1;
memset(password, 0, len);
xfree(password);
return authenticated;
xfree(pkblob);
#ifdef HAVE_CYGWIN
if (check_nt_auth(0, authctxt->pw) == 0)
- return(0);
+ authenticated = 0;
#endif
return authenticated;
}