[Pkg-cups-devel] Bug#530027: cups: Request from "…" using invalid Host: field "…"

ben+debian ben+debian at benfinney.id.au
Mon Jan 18 05:50:41 UTC 2010


On 18-Jan-2010, Philip Haynes wrote:
> Add the line;
> 
> HostNameLookups On
> 
> to your cupsd.conf file.

Thanks for the suggestion. However, that doesn't work for me:

=====
$ grep HostNameLookups /etc/cups/cupsd.conf
HostNameLookups On
$ grep ServerName /etc/cups/client.conf 
# ServerName: the hostname of your server.  By default CUPS will use the
ServerName printserver

$ host printserver
printserver.local.whitetree.org has address 192.168.5.7
$ lpq
lpq: error - no default destination available.
$ tail /var/log/cups/error_log
D [18/Jan/2010:16:46:15 +1100] Report: stringpool-alloc-bytes=8696
D [18/Jan/2010:16:46:15 +1100] Report: stringpool-total-bytes=25024
D [18/Jan/2010:16:46:16 +1100] cupsdAcceptClient: 13 from fuschia.local.whitetree.org:631 (IPv4)
D [18/Jan/2010:16:46:16 +1100] cupsdReadClient: 13 POST / HTTP/1.1
D [18/Jan/2010:16:46:16 +1100] cupsdSetBusyState: Active clients
D [18/Jan/2010:16:46:16 +1100] cupsdAuthorize: No authentication data provided.
E [18/Jan/2010:16:46:16 +1100] Request from "fuschia.local.whitetree.org" using invalid Host: field "printserver"
D [18/Jan/2010:16:46:16 +1100] cupsdReadClient: 13 Closing because Keep-Alive disabled
D [18/Jan/2010:16:46:16 +1100] cupsdCloseClient: 13
D [18/Jan/2010:16:46:16 +1100] cupsdSetBusyState: Not busy
=====

That is: the configuration file contains your suggested addition, and
the server still refuses to allow connection to the host name even
though that name correctly resolves to the print server host.

-- 
 \         “If you can do no good, at least do no harm.” —_Slapstick_, |
  `\                                                     Kurt Vonnegut |
_o__)                                                                  |
Ben Finney <ben at benfinney.id.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20100118/03fe6ee2/attachment.pgp>


More information about the Pkg-cups-devel mailing list