mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-25 14:54:45 +02:00
- djm@cvs.openbsd.org 2012/04/11 13:17:54
[auth.c] Support "none" as an argument for AuthorizedPrincipalsFile to indicate no file should be read.
This commit is contained in:
parent
a6508753db
commit
9fed161e67
@ -21,6 +21,10 @@
|
|||||||
[channels.c channels.h clientloop.c serverloop.c]
|
[channels.c channels.h clientloop.c serverloop.c]
|
||||||
don't spin in accept() when out of fds (ENFILE/ENFILE) - back off for a
|
don't spin in accept() when out of fds (ENFILE/ENFILE) - back off for a
|
||||||
while; ok deraadt@ markus@
|
while; ok deraadt@ markus@
|
||||||
|
- djm@cvs.openbsd.org 2012/04/11 13:17:54
|
||||||
|
[auth.c]
|
||||||
|
Support "none" as an argument for AuthorizedPrincipalsFile to indicate
|
||||||
|
no file should be read.
|
||||||
|
|
||||||
20120420
|
20120420
|
||||||
- (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
|
- (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
|
||||||
|
5
auth.c
5
auth.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: auth.c,v 1.94 2011/05/23 03:33:38 djm Exp $ */
|
/* $OpenBSD: auth.c,v 1.95 2012/04/11 13:17:54 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
@ -357,7 +357,8 @@ expand_authorized_keys(const char *filename, struct passwd *pw)
|
|||||||
char *
|
char *
|
||||||
authorized_principals_file(struct passwd *pw)
|
authorized_principals_file(struct passwd *pw)
|
||||||
{
|
{
|
||||||
if (options.authorized_principals_file == NULL)
|
if (options.authorized_principals_file == NULL ||
|
||||||
|
strcasecmp(options.authorized_principals_file, "none") == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
return expand_authorized_keys(options.authorized_principals_file, pw);
|
return expand_authorized_keys(options.authorized_principals_file, pw);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user