summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-03-14 23:17:27 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-03-14 23:17:27 +1100
commita8f553df53bf116c16de409a0d6bc897d0a2f228 (patch)
treeafd6f843aee19fa78ff6aa504c24c784d654967e
parentda1adbc2cc0cc26a61102d9129241fcb61c33cb1 (diff)
- dtucker@cvs.openbsd.org 2005/03/14 11:44:42
[auth.c] Populate host for log message for logins denied by AllowUsers and DenyUsers (bz #999); ok markus@
-rw-r--r--ChangeLog6
-rw-r--r--auth.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b3a4001eb..eceda670e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,10 @@
21 - dtucker@cvs.openbsd.org 2005/03/14 10:09:03 21 - dtucker@cvs.openbsd.org 2005/03/14 10:09:03
22 [ssh-keygen.1] 22 [ssh-keygen.1]
23 Correct description of -H (bz #997); ok markus@, punctuation jmc@ 23 Correct description of -H (bz #997); ok markus@, punctuation jmc@
24 - dtucker@cvs.openbsd.org 2005/03/14 11:44:42
25 [auth.c]
26 Populate host for log message for logins denied by AllowUsers and
27 DenyUsers (bz #999); ok markus@
24 28
2520050313 2920050313
26 - (dtucker) [contrib/cygwin/ssh-host-config] Makes the query for the 30 - (dtucker) [contrib/cygwin/ssh-host-config] Makes the query for the
@@ -2355,4 +2359,4 @@
2355 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 2359 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
2356 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 2360 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
2357 2361
2358$Id: ChangeLog,v 1.3716 2005/03/14 12:15:58 dtucker Exp $ 2362$Id: ChangeLog,v 1.3717 2005/03/14 12:17:27 dtucker Exp $
diff --git a/auth.c b/auth.c
index 256807683..46b013137 100644
--- a/auth.c
+++ b/auth.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth.c,v 1.57 2005/01/22 08:17:59 dtucker Exp $"); 26RCSID("$OpenBSD: auth.c,v 1.58 2005/03/14 11:44:42 dtucker Exp $");
27 27
28#ifdef HAVE_LOGIN_H 28#ifdef HAVE_LOGIN_H
29#include <login.h> 29#include <login.h>
@@ -145,7 +145,8 @@ allowed_user(struct passwd * pw)
145 return 0; 145 return 0;
146 } 146 }
147 147
148 if (options.num_deny_users > 0 || options.num_allow_users > 0) { 148 if (options.num_deny_users > 0 || options.num_allow_users > 0 ||
149 options.num_deny_groups > 0 || options.num_allow_groups > 0) {
149 hostname = get_canonical_hostname(options.use_dns); 150 hostname = get_canonical_hostname(options.use_dns);
150 ipaddr = get_remote_ipaddr(); 151 ipaddr = get_remote_ipaddr();
151 } 152 }