summaryrefslogtreecommitdiff
path: root/auth1.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-01-24 22:46:54 +0000
committerColin Watson <cjwatson@debian.org>2010-01-24 22:46:54 +0000
commit59247ecde39f2d826a94ab07f6095ca1f6644e88 (patch)
tree5910d4a840352aafbf67e8a39fa63936e5529b26 /auth1.c
parent07d905b406c4ab64ea2f10a22f4f8f0d595269f6 (diff)
parent964476f91b66c475d5b8fa1e8b28d39a97a1b56e (diff)
* New upstream release.
* Update to GSSAPI patch from http://www.sxw.org.uk/computing/patches/openssh-5.3p1-gsskex-all-20100124.patch.
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/auth1.c b/auth1.c
index 8ff98d493..184ee0545 100644
--- a/auth1.c
+++ b/auth1.c
@@ -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)) {