From b70b61f5fecf37d95e031414849745030fa8a420 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 16 Sep 2000 16:25:12 +1100 Subject: - (djm) Update CygWin support from Corinna Vinschen --- auth1.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'auth1.c') diff --git a/auth1.c b/auth1.c index 43faa67f3..99639b59f 100644 --- a/auth1.c +++ b/auth1.c @@ -29,11 +29,6 @@ RCSID("$OpenBSD: auth1.c,v 1.4 2000/09/07 20:27:49 deraadt Exp $"); # include #endif -#ifdef HAVE_CYGWIN -#include -#define is_winnt (GetVersion() < 0x80000000) -#endif - /* import */ extern ServerOptions options; extern char *forced_command; @@ -383,16 +378,8 @@ do_authloop(struct passwd * pw) } #ifdef HAVE_CYGWIN - /* - * The only authentication which is able to change the user - * context on NT systems is the password authentication. So - * we deny all requsts for changing the user context if another - * authentication method is used. - * This may change in future when a special openssh - * subauthentication package is available. - */ - if (is_winnt && type != SSH_CMSG_AUTH_PASSWORD && - authenticated && geteuid() != pw->pw_uid) { + if (authenticated && + !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,pw->pw_uid)) { packet_disconnect("Authentication rejected for uid %d.", (int) pw->pw_uid); authenticated = 0; -- cgit v1.2.3