summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/auth2-none.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/auth2-none.c')
-rw-r--r--crypto/openssh/auth2-none.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/openssh/auth2-none.c b/crypto/openssh/auth2-none.c
index 0afbc4f..720d3c1 100644
--- a/crypto/openssh/auth2-none.c
+++ b/crypto/openssh/auth2-none.c
@@ -96,6 +96,10 @@ userauth_none(Authctxt *authctxt)
none_enabled = 0;
packet_check_eom();
userauth_banner();
+#ifdef HAVE_CYGWIN
+ if (check_nt_auth(1, authctxt->pw) == 0)
+ return(0);
+#endif
return (authctxt->valid ? PRIVSEP(auth_password(authctxt, "")) : 0);
}
OpenPOWER on IntegriCloud