Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2001 12:14:24 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        freebsd-audit@FreeBSD.ORG, freebsd-print@bostonradio.org
Subject:   Re: Patch: new options for lpd, improved msgs for connect-errs
Message-ID:  <p05100e05b7513341fe2c@[128.113.24.47]>
In-Reply-To: <p05100e16b7506317331b@[128.113.24.47]>
References:  <p05100e16b7506317331b@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:16 PM -0400 6/15/01, Garance A Drosihn wrote:
>    [...]  Also let me know if the messages to syslog
>could be more helpful to potentially-harried administrators
>trying to figure out why some client isn't able to connect...

In the spirit of that thought, I've altered one of the error
messages in the patch I posted.  Instead of:

>+	fhosterr(wantsl, "refused connection from %s",
>+	    "Your host (%s) does not have print-service access", from_host);
>  	/*NOTREACHED*/

it is now:

	fhosterr(wantsl, "refused connection from %s, sip=%s",
	    "Print-services are not available to your host (%s).", from_host,
	    from_ip);
	/*NOTREACHED*/

The idea being that the hostname COULD be rather long, and if so then
it would be better at the end of the error message sent to the user.
I've also included the sender's IP address in the message to syslog,
as that may be of interest in these days of Dynamic DNS and IPv6...

The exact-wording of the message to the user may change again, if I
think up some better/smoother way to say it (and still keep the
hostname at the end of the message).

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05100e05b7513341fe2c>