From 5af5b1085c4f9e1542ae7a7f74a6d5aa201f17d0 Mon Sep 17 00:00:00 2001 From: djm Date: Sun, 22 Apr 2012 01:21:43 +0000 Subject: - 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. --- auth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'auth.c') diff --git a/auth.c b/auth.c index cd95da93..97693288 100644 --- a/auth.c +++ b/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. * @@ -357,7 +357,8 @@ expand_authorized_keys(const char *filename, struct passwd *pw) char * 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 expand_authorized_keys(options.authorized_principals_file, pw); } -- cgit v1.2.1