diff options
author | des <des@FreeBSD.org> | 2012-08-29 15:55:54 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2012-08-29 15:55:54 +0000 |
commit | 92ca7d86082c8566c36d7e641d345f4dc09ef6db (patch) | |
tree | 0fb8acbff73fddb3a95e864c5ddd6370367153a9 /auth.c | |
parent | a2352e45cfc1c57cda5e676028c6c4c012a39fef (diff) | |
download | FreeBSD-src-92ca7d86082c8566c36d7e641d345f4dc09ef6db.zip FreeBSD-src-92ca7d86082c8566c36d7e641d345f4dc09ef6db.tar.gz |
Vendor import of OpenSSH 6.1p1.
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: auth.c,v 1.94 2011/05/23 03:33:38 djm Exp $ */ +/* $OpenBSD: auth.c,v 1.96 2012/05/13 01:42:32 dtucker 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); } @@ -544,9 +545,10 @@ getpwnamallow(const char *user) #endif #endif struct passwd *pw; + struct connection_info *ci = get_connection_info(1, options.use_dns); - parse_server_match_config(&options, user, - get_canonical_hostname(options.use_dns), get_remote_ipaddr()); + ci->user = user; + parse_server_match_config(&options, ci); #if defined(_AIX) && defined(HAVE_SETAUTHDB) aix_setauthdb(user); |