You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Issue:
All Kerberos authenticated print job from a CUPS 1.4.x client gets canceled.
Print jobs from CUPS 1.3.x gets through without any errors.
Scenario:
Any CUPS 1.4.x client (tested Ubuntu 9.10, Fedora 11, Fedora 12, CentOS 5.4, Solaris 10, MacOSX 10.6) against a Ubuntu 9.10 Server with CUPS 1.4.1.
Using Kerberos authentication (see attached cupsd.conf)
Command "kvno -k /etc/krb5.keytab -S HOST swe-lab-cup-002.swelab.local" gives the output "HOST/swe-lab-cup-002.swelab.local@SWELAB.LOCAL: kvno = 5, keytab entry valid"
Klients are using a client.conf file with one line "ServerName swe-lab-cup-002.swelab.local"
Expected if working:
When running the command "lp -d PrinterQueueName /etc/hosts" we get the reply "lp: successful: ok". Should be getting "request id is PrinterQueueName-ID (1 file(s))".
Possible problem:
In the error log right before "Send-Document" we get the error;
"cupsdAuthorize: Error accepting GSSAPI security context: Unspecified GSS failure. Minor code may provide more information, Request is a replay".
The "Send-Document" command tries to authenticate using no username, fails and then sends "Cancel-Job".
Both the "Create-Job" and "Cancel-Job" authenticates using Kerberos.
Please try the attached patch - basically, we were not seeing the "authentication required" response fast enough from the server, so we canceled while sending the document data. The patch updates the document sending code to retry the entire request.
Port 631
Listen /var/run/cups/cups.sock
ServerName swe-lab-cup-002.swelab.local
ServerAlias swe-lab-cup-002.swelab.local
Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseRemoteProtocols
BrowseAddress @Local
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Negotiate
# Allow shared printing...
Order allow,deny
Allow all
# Restrict access to the admin pages...
Order allow,deny
AuthType Default
Require user @System
# Restrict access to the configuration files...
Order allow,deny
AuthType Default
Require valid-user
Order deny,allow
AuthType Default
Require user @owner@System
Order deny,allow
AuthType Default
Require user @System
Order deny,allow
AuthType Default
Require user @System
Order deny,allow
AuthType Default
Require user @owner@System
Order deny,allow
Order deny,allow
Activity
michaelrsweet commentedon Dec 7, 2009
CUPS.org User: mike
Fixed in Subversion repository.
Please try the attached patch - basically, we were not seeing the "authentication required" response fast enough from the server, so we canceled while sending the document data. The patch updates the document sending code to retry the entire request.
michaelrsweet commentedon Feb 8, 2010
"cupsd.conf":
LogLevel debug
MaxLogSize 0
SystemGroup lpadmin
Allow remote access
Port 631
Listen /var/run/cups/cups.sock
ServerName swe-lab-cup-002.swelab.local
ServerAlias swe-lab-cup-002.swelab.local
Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseRemoteProtocols
BrowseAddress @Local
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Negotiate
# Allow shared printing... Order allow,deny Allow all # Restrict access to the admin pages... Order allow,deny AuthType Default Require user @System # Restrict access to the configuration files... Order allow,deny AuthType Default Require valid-user Order deny,allow AuthType Default Require user @owner @System Order deny,allow AuthType Default Require user @System Order deny,allow AuthType Default Require user @System Order deny,allow AuthType Default Require user @owner @System Order deny,allow Order deny,allowmichaelrsweet commentedon Feb 8, 2010
"str3435.patch":
Index: cups/util.c
--- cups/util.c (revision 8900)
+++ cups/util.c (working copy)
@@ -1511,13 +1511,37 @@
return (0);
}
cupsFileClose(fp);
if (status != HTTP_CONTINUE || cupsFinishDocument(http, name) != IPP_OK)