mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- djm@cvs.openbsd.org 2010/06/25 08:46:17
[auth1.c auth2-none.c] skip the initial check for access with an empty password when PermitEmptyPasswords=no; bz#1638; ok markus@
This commit is contained in:
parent
8853ca5fc4
commit
bda3ecafca
@ -63,6 +63,10 @@
|
|||||||
internal-sftp accidentally introduced in r1.253 by removing the code
|
internal-sftp accidentally introduced in r1.253 by removing the code
|
||||||
that opens and dup /dev/null to stderr and modifying the channels code
|
that opens and dup /dev/null to stderr and modifying the channels code
|
||||||
to read stderr but discard it instead; ok markus@
|
to read stderr but discard it instead; ok markus@
|
||||||
|
- djm@cvs.openbsd.org 2010/06/25 08:46:17
|
||||||
|
[auth1.c auth2-none.c]
|
||||||
|
skip the initial check for access with an empty password when
|
||||||
|
PermitEmptyPasswords=no; bz#1638; ok markus@
|
||||||
|
|
||||||
20100622
|
20100622
|
||||||
- (djm) [loginrec.c] crank LINFO_NAMESIZE (username length) to 512
|
- (djm) [loginrec.c] crank LINFO_NAMESIZE (username length) to 512
|
||||||
|
4
auth1.c
4
auth1.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: auth1.c,v 1.73 2008/07/04 23:30:16 djm Exp $ */
|
/* $OpenBSD: auth1.c,v 1.74 2010/06/25 08:46:17 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
* All rights reserved
|
* All rights reserved
|
||||||
@ -244,7 +244,7 @@ do_authloop(Authctxt *authctxt)
|
|||||||
authctxt->valid ? "" : "invalid user ", authctxt->user);
|
authctxt->valid ? "" : "invalid user ", authctxt->user);
|
||||||
|
|
||||||
/* If the user has no password, accept authentication immediately. */
|
/* If the user has no password, accept authentication immediately. */
|
||||||
if (options.password_authentication &&
|
if (options.permit_empty_passwd && options.password_authentication &&
|
||||||
#ifdef KRB5
|
#ifdef KRB5
|
||||||
(!options.kerberos_authentication || options.kerberos_or_local_passwd) &&
|
(!options.kerberos_authentication || options.kerberos_or_local_passwd) &&
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: auth2-none.c,v 1.15 2008/07/02 12:36:39 djm Exp $ */
|
/* $OpenBSD: auth2-none.c,v 1.16 2010/06/25 08:46:17 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
@ -61,7 +61,7 @@ userauth_none(Authctxt *authctxt)
|
|||||||
{
|
{
|
||||||
none_enabled = 0;
|
none_enabled = 0;
|
||||||
packet_check_eom();
|
packet_check_eom();
|
||||||
if (options.password_authentication)
|
if (options.permit_empty_passwd && options.password_authentication)
|
||||||
return (PRIVSEP(auth_password(authctxt, "")));
|
return (PRIVSEP(auth_password(authctxt, "")));
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user