diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-16 07:25:12 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-16 07:25:12 +0200 |
commit | b70b61f5fecf37d95e031414849745030fa8a420 (patch) | |
tree | 33a92aca5fde66bde1c3bb3cdabfc5a4c27e24ab /auth1.c | |
parent | - (djm) Use a real struct sockaddr inside the fake struct sockaddr_storage. (diff) | |
download | openssh-b70b61f5fecf37d95e031414849745030fa8a420.tar.xz openssh-b70b61f5fecf37d95e031414849745030fa8a420.zip |
- (djm) Update CygWin support from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -29,11 +29,6 @@ RCSID("$OpenBSD: auth1.c,v 1.4 2000/09/07 20:27:49 deraadt Exp $"); # include <siad.h> #endif -#ifdef HAVE_CYGWIN -#include <windows.h> -#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; |