[Printing-user-general] CUPS 1.2.2, Unable to send document from LPD to Cups server
[email protected] (Rafael) Thu, 20 Jul 2006 17:04:49 +0000 (UTC)
| Newsgroups | gmane.linux.printing.general |
|---|---|
| Organization | http://www.linuxprinting.org/ |
| Message-ID | <[email protected]> |
Hi everyone,
The Problem:
My CUPS server can't be used from lpd client. It's no problem from other cups
clients and Windows client, the print server runs cups + samba.
(clients from Solaris, Tru64 and OpenVMS)
Any suggestion or tips hare welcome!!
/Rafael
What I have:
1) I have a Cups v1.2.2 compiled for Red Hat Linux 3.2.3-54.
2) My cupsd.conf:
LogLevel debug
MaxJobs 5000
MaxClients 50000
SystemGroup cupsadm
<Location />
Order Deny,Allow
Deny From None
Allow From All
</Location>
<Location /jobs>
Order Deny,Allow
Deny From None
Allow From All
AuthType Basic
</Location>
<Location /printers/name>
Order Deny,Allow
Allow From All
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From None
Allow From All
</Location>
3) Cupsd Static linked:
libz.so.1 => /usr/lib/libz.so.1 (0x0092c000)
libldap.so.2 => /usr/lib/libldap.so.2 (0x00afd000)
libpam.so.0 => /lib/libpam.so.0 (0x00d40000)
libdl.so.2 => /lib/libdl.so.2 (0x00461000)
libacl.so.1 => /lib/libacl.so.1 (0x00488000)
libcups.so.2 => /usr/lib/libcups.so.2 (0x0094f000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x007b0000)
libm.so.6 => /lib/tls/libm.so.6 (0x00f97000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x0059c000)
libc.so.6 => /lib/tls/libc.so.6 (0x00bc6000)
liblber.so.2 => /usr/lib/liblber.so.2 (0x0067a000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00214000)
libssl.so.4 => /lib/libssl.so.4 (0x00111000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x00226000)
liblaus.so.1 => /lib/liblaus.so.1 (0x009fa000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00365000)
libattr.so.1 => /lib/libattr.so.1 (0x00145000)
libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2
(0x00148000)
libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x0080d000)
libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x00d80000)
libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x00f63000)
4) My /etc/xinetd.d/cups-lpd
service printer
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/lib/cups/daemon/cups-lpd
}
( nmap from lpd client shows that '515/tcp open printer' )
5) Output from /var/log/cups/error_log
D [20/Jul/2006:16:54:05 +0000] cupsdAcceptClient: 5 from 172.19.0.23:631 (IPv4)
D [20/Jul/2006:16:54:05 +0000] cupsdReadClient: 5 POST / HTTP/1.1
D [20/Jul/2006:16:54:05 +0000] cupsdAuthorize: No authentication data provided.
D [20/Jul/2006:16:54:05 +0000] Get-Printer-Attributes
ipp://localhost/printers/ric2238_12_2
D [20/Jul/2006:16:54:05 +0000] cupsdProcessIPPRequest: 5 status_code=0
(successful-ok)
D [20/Jul/2006:16:54:06 +0000] cupsdReadClient: 5 POST /printers/ric2238_12_2
HTTP/1.1
D [20/Jul/2006:16:54:06 +0000] cupsdAuthorize: No authentication data provided.
D [20/Jul/2006:16:54:06 +0000] Create-Job ipp://localhost/printers/ric2238_12_2
D [20/Jul/2006:16:54:06 +0000] add_job: requesting-user-name="rurrutia"
I [20/Jul/2006:16:54:06 +0000] Adding start banner page "standard" to job 1275.
D [20/Jul/2006:16:54:06 +0000] Discarding unused job-created event...
I [20/Jul/2006:16:54:06 +0000] Job 1275 created on "ric2238_12_2" by
"rurrutia".
D [20/Jul/2006:16:54:06 +0000] cupsdProcessIPPRequest: 5 status_code=0
(successful-ok)
D [20/Jul/2006:16:54:06 +0000] cupsdReadClient: 5 POST /jobs/1275 HTTP/1.1
D [20/Jul/2006:16:54:06 +0000] cupsdAuthorize: No authentication data provided.
D [20/Jul/2006:16:54:06 +0000] cupsdSendError: 5 code=401 (Unauthorized)
D [20/Jul/2006:16:54:06 +0000] cupsdCloseClient: 5
D [20/Jul/2006:16:54:07 +0000] cupsdAcceptClient: 5 from 172.19.0.23:631 (IPv4)
D [20/Jul/2006:16:54:07 +0000] cupsdReadClient: 5 POST / HTTP/1.1
D [20/Jul/2006:16:54:07 +0000] cupsdAuthorize: No authentication data provided.
D [20/Jul/2006:16:54:07 +0000] Get-Jobs ipp://localhost/printers/hp5000_st1
D [20/Jul/2006:16:54:07 +0000] cupsdProcessIPPRequest: 5 status_code=0
(successful-ok)
D [20/Jul/2006:16:54:07 +0000] cupsdReadClient: 5 POST / HTTP/1.1
D [20/Jul/2006:16:54:07 +0000] cupsdAuthorize: No authentication data provided.
D [20/Jul/2006:16:54:07 +0000] Get-Printer-Attributes
ipp://localhost/printers/hp5000_st1
D [20/Jul/2006:16:54:07 +0000] cupsdProcessIPPRequest: 5 status_code=0
(successful-ok)
D [20/Jul/2006:16:54:07 +0000] cupsdCloseClient: 5
6) Output from /var/log/messages:
Jul 20 16:50:21 lxserv70 cups-lpd[9620]: Connection from x.x.x.x (IPv4 x.x.x.x)
Jul 20 16:50:21 lxserv70 cups-lpd[9620]: Receive print job for ric2238_12_2
Jul 20 16:50:21 lxserv70 cups-lpd[9620]: Print file - job ID = 1272
Jul 20 16:50:21 lxserv70 cups-lpd[9620]: Unable to send document - Unauthorized
Jul 20 16:50:21 lxserv70 cups-lpd[9620]: Closing connection