diff options
| author | cgd <cgd@NetBSD.org> | 1994-02-04 23:42:16 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1994-02-04 23:42:16 +0000 |
| commit | 5bdeccb8d47e77a501ca2c42cc2107fa1fc65053 (patch) | |
| tree | 9ea6bf161b2fece67fed123d3875928ad8438d81 /libexec | |
| parent | 1efbe5ebae8aea1ea94dc1af178a654014070959 (diff) | |
add a use for -v, for happy paranoid sysadmins
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/identd/identd.8 | 11 | ||||
| -rw-r--r-- | libexec/identd/parse.c | 8 |
2 files changed, 16 insertions, 3 deletions
diff --git a/libexec/identd/identd.8 b/libexec/identd/identd.8 index 81cf553d6bc..5eafd612a38 100644 --- a/libexec/identd/identd.8 +++ b/libexec/identd/identd.8 @@ -2,7 +2,7 @@ .\" Copyright (c) 1992 Peter Eriksson, Lysator, Linkoping University. .\" This software has been released into the public domain. .\" -.\" $Id: identd.8,v 1.2 1994/02/04 23:17:55 cgd Exp $ +.\" $Id: identd.8,v 1.3 1994/02/04 23:42:16 cgd Exp $ .\" .TH IDENTD 8 "27 May 1992" .SH NAME @@ -21,6 +21,7 @@ identd \- TCP/IP IDENT protocol server .RB [ \-e ] .RB [ \-l ] .RB [ \-V ] +.RB [ \-v ] .RB [ \-m ] .RB [ \-N ] .RB [ \-d ] @@ -157,6 +158,14 @@ to use the System logging daemon .B syslogd for logging purposes. .PP +The +.B -v +flag causes +.B identd +to log every request made, if the use of +.B syslogd +is enabled. +.PP The .B -o flag tells diff --git a/libexec/identd/parse.c b/libexec/identd/parse.c index 94db91c038e..94139125e5e 100644 --- a/libexec/identd/parse.c +++ b/libexec/identd/parse.c @@ -1,5 +1,5 @@ /* -** $Id: parse.c,v 1.2 1994/02/04 23:18:01 cgd Exp $ +** $Id: parse.c,v 1.3 1994/02/04 23:42:25 cgd Exp $ ** ** parse.c This file contains the protocol parser ** @@ -304,6 +304,10 @@ int parse(fp, laddr, faddr) continue; } + if (syslog_flag && verbose_flag) + syslog(LOG_NOTICE, "request for (%d,%d) from %s", + lport, fport, gethost(faddr)); + if (debug_flag && syslog_flag) syslog(LOG_DEBUG, " After fscanf(), before k_getuid()"); @@ -367,7 +371,7 @@ int parse(fp, laddr, faddr) if (noident_flag && check_noident(pwp->pw_dir)) { - if (syslog_flag) + if (syslog_flag && verbose_flag) syslog(LOG_NOTICE, "user %s requested HIDDEN-USER for host %s: %d, %d", pwp->pw_name, gethost(faddr), |
