Bug 5675 - smbspool auth-info-required hook assumes Kerberos
Summary: smbspool auth-info-required hook assumes Kerberos
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.2.0
Hardware: All Linux
: P3 normal
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
Depends on:
Reported: 2008-08-06 05:03 UTC by Tim Waugh
Modified: 2011-09-12 06:27 UTC (History)
1 user (show)

See Also:

Proposed patch (474 bytes, patch)
2008-08-07 18:24 UTC, Jeremy Allison
no flags Details
Final patch (2.02 KB, patch)
2008-08-07 19:55 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Waugh 2008-08-06 05:03:40 UTC
This bug:

remains unfixed.

The problem can be seen when a URI such as smb://server/share is used, without authentication details, but authentication is required by the server.

In this case, what is supposed to happen is that smbspool, acting as a CUPS backend, sets the IPP attribute auth-info-required indicating what type of authentication details it needs, such as:

ATTR: auth-info-required=username,password

or, if Kerberos authentication is required:

ATTR: auth-info-required=negotiate

The trouble is that it is using the latter form ('negotiate') even when the server has not been configured to required Kerberos.  This means that proxy authentication (which e.g. system-config-printer implements) cannot go ahead.

It also causes future jobs for that queue to fail even if the device URI is changed to include the authentication details in it, because CUPS caches this attribute in /etc/cups/printers.conf.
Comment 1 Tim Waugh 2008-08-06 05:04:23 UTC
This relates slightly to https://bugzilla.samba.org/show_bug.cgi?id=4134, which is where the feature was originally requested.
Comment 2 Jeremy Allison 2008-08-07 18:24:44 UTC
Created attachment 3458 [details]
Proposed patch

This is the patch created by Tim Waugh for this problem. It looks correct to me but the comment here :


claims James doesn't like it. I'll ping him before applying Tim's patch.

Comment 3 Jeremy Allison 2008-08-07 19:55:49 UTC
Created attachment 3459 [details]
Final patch

Added got_kerberos_mechanism flag into cli struct.
Comment 4 Karolin Seeger 2008-08-18 09:07:30 UTC
Marking this one as fixed.
Patch will be in 3.2.2.
Please re-open if it is still an issue for you.

Thanks for reporting!