diff options
author | Darren Tucker <dtucker@zip.com.au> | 2009-03-08 11:40:27 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2009-03-08 11:40:27 +1100 |
commit | 9d86e5d5704092072822336af6d0bee468c25966 (patch) | |
tree | bca452252bba17e05b91a6e215cfcbc5ab533408 /auth1.c | |
parent | 3e7e15f1bdc2ddd8fe4a389212c6b8db58e2b511 (diff) |
- (dtucker) [auth-passwd.c auth1.c auth2-kbdint.c auth2-none.c auth2-passwd.c
auth2-pubkey.c session.c openbsd-compat/bsd-cygwin_util.{c,h}
openbsd-compat/daemon.c] Remove support for Windows 95/98/ME and very old
version of Cygwin. Patch from vinschen at redhat com.
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -318,15 +318,7 @@ do_authloop(Authctxt *authctxt) | |||
318 | } | 318 | } |
319 | #endif /* _UNICOS */ | 319 | #endif /* _UNICOS */ |
320 | 320 | ||
321 | #ifdef HAVE_CYGWIN | 321 | #ifndef HAVE_CYGWIN |
322 | if (authenticated && | ||
323 | !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD, | ||
324 | authctxt->pw)) { | ||
325 | packet_disconnect("Authentication rejected for uid %d.", | ||
326 | authctxt->pw == NULL ? -1 : authctxt->pw->pw_uid); | ||
327 | authenticated = 0; | ||
328 | } | ||
329 | #else | ||
330 | /* Special handling for root */ | 322 | /* Special handling for root */ |
331 | if (authenticated && authctxt->pw->pw_uid == 0 && | 323 | if (authenticated && authctxt->pw->pw_uid == 0 && |
332 | !auth_root_allowed(meth->name)) { | 324 | !auth_root_allowed(meth->name)) { |