Bug 837602
Summary: | cups + krb: it falls down into basic authorization instead of negotiate | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Petr Sklenar <psklenar> | ||||
Component: | cups | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Sklenar <psklenar> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.0 | CC: | jpopelka, jscotka, marcus.moeller, sandro | ||||
Target Milestone: | rc | Keywords: | Patch, Regression | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-06-13 11:47:21 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Petr Sklenar
2012-07-04 11:02:16 UTC
This seems to be due to a check in the server end about whether this is a local connection: scheduler/client.c:2719 (cupsdSendHeader): #ifdef HAVE_GSSAPI else if (auth_type == CUPSD_AUTH_NEGOTIATE) { # ifdef AF_LOCAL if (_httpAddrFamily(con->http.hostaddr) == AF_LOCAL) strlcpy(auth_str, "Basic realm=\"CUPS\"", sizeof(auth_str)); else # endif /* AF_LOCAL */ strlcpy(auth_str, "Negotiate", sizeof(auth_str)); } #endif /* HAVE_GSSAPI */ Adjusting the lpadmin command to add "-h $IP_ADDR" with the external IP address of the machine allows it to succeed. This seems to have been added as part of upstream revision 9732 on trunk: commit 8e48ce8bd6acc030f9e913cd80ed31e7465d7ef1 Author: mike <mike@7a7537e8-13f0-0310-91df-b6672ffda945> Date: Sun May 1 19:55:04 2011 +0000 Use GSS framework, when available, and support acquisition of Kerberos creds when the underlying libraries support it (may add others as time permits). git-svn-id: http://svn.easysw.com/public/cups/trunk@9732 7a7537e8-13f0-0310-91df-b6672ffda945 Reported upstream. *** Bug 842782 has been marked as a duplicate of this bug. *** Created attachment 665435 [details]
Upstream patch
Upstream patch has been applied in cups-1.5.4-22. @Jiri has this been also made available to Fedora? Looks like it: commit 9db046f6c4f1b7f8afc79cec03780144c9244631 Author: Jiri Popelka <jpopelka> Date: Tue Dec 18 15:32:27 2012 +0100 backport fixes for STR #4125, STR #4140, STR #4187, STR #4205, STR #4232 This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |