FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-26-2008, 10:08 AM
Andy Eager
 
Default F9 - cups - windows shared printer

OK, for anyone interested (and as a way of documenting the problem), I
finally got to the bottom of this issue.
It has absolutely nothing to do with users, groups, cups authentication,
Firefox or much else discussed in this thread!!


I was using ipp as the printing protocol to talk to the printer:- A
Konica-Minolta MC2450.

ipp://printer_hostname:631/ipp

Not sure whether the problem is with CUPS implementation of ipp or the
printer itself, but if I change to JetDirect
(socket://printer_hostname), then everything works just fine.


Now for the gory details:

* printers.conf is setup initially without the AuthInfoRequired line
(which is the same AuthInfoRequired none)

* When I try to print I get the following:
E [25/Jul/2008:17:20:53 +1000] [Job 1] Unable to get job 1997
attributes (client-error-not-authorized)!

I [25/Jul/2008:17:20:53 +1000] Saving printers.conf...
E [25/Jul/2008:17:20:53 +1000] PID 5314 (/usr/lib/cups/backend/ipp)
stopped with status 2!

D [25/Jul/2008:17:20:53 +1000] [Job 1] File 0 is complete.
I [25/Jul/2008:17:20:53 +1000] [Job 1] Backend returned status 2
(authentication required)
* When cupsd saves printers.conf, it decides (incorrectly) that
authentication is required and inserts the AuthInfoRequired negotiate
line into printers.conf


For any cups developers reading this, here's the code that does this
from job.c: (which I believe is semantically incorrect)

if ((attr = cupsGetOption("auth-info-required", num_attrs, attrs)) != NULL)
{
cupsdLogMessage(CUPSD_LOG_ERROR, "WOULD BE SETTING attribute
%s", attr);

// cupsdSetAuthInfoRequired(job->printer, attr, NULL);
cupsdSetPrinterAttrs(job->printer);
cupsdSaveAllPrinters();
}
The first line is me wanting to see this event in the log file
The second line is me commenting out the change to AuthInfoRequired.

When I run this modified version of cups, I still see same output in the
log file, but the job does print (as do any subsequent jobs) and there
is no change made to printers.conf.


Anyway, that's the full story.
I now know the anatomy of cups way more than I ever wanted to!

Andy




--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-26-2008, 04:53 PM
Craig White
 
Default F9 - cups - windows shared printer

On Sat, 2008-07-26 at 19:08 +1000, Andy Eager wrote:
> OK, for anyone interested (and as a way of documenting the problem), I
> finally got to the bottom of this issue.
> It has absolutely nothing to do with users, groups, cups authentication,
> Firefox or much else discussed in this thread!!
>
> I was using ipp as the printing protocol to talk to the printer:- A
> Konica-Minolta MC2450.
> ipp://printer_hostname:631/ipp
>
> Not sure whether the problem is with CUPS implementation of ipp or the
> printer itself, but if I change to JetDirect
> (socket://printer_hostname), then everything works just fine.
>
> Now for the gory details:
>
> * printers.conf is setup initially without the AuthInfoRequired line
> (which is the same AuthInfoRequired none)
> * When I try to print I get the following:
> E [25/Jul/2008:17:20:53 +1000] [Job 1] Unable to get job 1997
> attributes (client-error-not-authorized)!
> I [25/Jul/2008:17:20:53 +1000] Saving printers.conf...
> E [25/Jul/2008:17:20:53 +1000] PID 5314 (/usr/lib/cups/backend/ipp)
> stopped with status 2!
> D [25/Jul/2008:17:20:53 +1000] [Job 1] File 0 is complete.
> I [25/Jul/2008:17:20:53 +1000] [Job 1] Backend returned status 2
> (authentication required)
> * When cupsd saves printers.conf, it decides (incorrectly) that
> authentication is required and inserts the AuthInfoRequired negotiate
> line into printers.conf
>
> For any cups developers reading this, here's the code that does this
> from job.c: (which I believe is semantically incorrect)
> if ((attr = cupsGetOption("auth-info-required", num_attrs, attrs)) != NULL)
> {
> cupsdLogMessage(CUPSD_LOG_ERROR, "WOULD BE SETTING attribute
> %s", attr);
> // cupsdSetAuthInfoRequired(job->printer, attr, NULL);
> cupsdSetPrinterAttrs(job->printer);
> cupsdSaveAllPrinters();
> }
> The first line is me wanting to see this event in the log file
> The second line is me commenting out the change to AuthInfoRequired.
>
> When I run this modified version of cups, I still see same output in the
> log file, but the job does print (as do any subsequent jobs) and there
> is no change made to printers.conf.
>
> Anyway, that's the full story.
> I now know the anatomy of cups way more than I ever wanted to!
----
did you want to add that to the bugzilla entry I started or should I
reference?

also, for the record, I never set up the printer as ipp but only as a
connection to windows shared printer (smb://) but perhaps the code is
similar there

Craig

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-28-2008, 01:48 PM
Tim Waugh
 
Default F9 - cups - windows shared printer

On Tue, 2008-07-22 at 09:39 -0500, Aaron Konstam wrote:
> I have yet to find out how you can configure a computer to print to
> printers distributed by a remote print serve as well as a local printer
> without editing its cupsd.conf file. Any suggestions?

Use CUPS browsing (Aaron, I'm sure we've been over this before).

CUPS browsing is enabled by default. All you have to do in Fedora 9 is
start system-config-firewall and select the 'Network Printing Client
(IPP)' check-box, and wait.

The remote CUPS server (on the same subnet) will broadcast UDP packets
describing its queues, and the local CUPS server will automatically make
those queues available to you.

If your remote CUPS server is on a different subnet then you need to
make arrangements to either:

* have those UDP packets forwarded by the network bridge ('directed
broadcast')

or

* tell the local CUPS server the IP address of the remote CUPS server
using 'BrowsePoll' in the cupsd.conf file

Tim.
*/

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-28-2008, 01:58 PM
Tim Waugh
 
Default F9 - cups - windows shared printer

On Thu, 2008-07-24 at 15:58 -0700, Craig White wrote:
> We'll get to the bottom of it - and I'm pretty patient and suspect that
> Tim will sound off in a few days.

:-)

This is a samba bug, introduced by the upstream CUPS maintainer when he
added proxy authentication support to smbspool:

https://bugzilla.redhat.com/show_bug.cgi?id=453951

Tim.
*/

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-28-2008, 02:22 PM
Craig White
 
Default F9 - cups - windows shared printer

On Mon, 2008-07-28 at 13:58 +0100, Tim Waugh wrote:
> On Thu, 2008-07-24 at 15:58 -0700, Craig White wrote:
> > We'll get to the bottom of it - and I'm pretty patient and suspect that
> > Tim will sound off in a few days.
>
> :-)
>
> This is a samba bug, introduced by the upstream CUPS maintainer when he
> added proxy authentication support to smbspool:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=453951
>
----
OK - so next time, instead of removing 'AuthInfoRequired negotiate' I
would be better off changing it to 'AuthInfoRequired none' - got it.

I suppose you can label my bugzilla as a duplicate of the above...
https://bugzilla.redhat.com/show_bug.cgi?id=456555

Thanks...hope you enjoyed your time off

Craig

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-28-2008, 02:35 PM
Tim Waugh
 
Default F9 - cups - windows shared printer

On Mon, 2008-07-28 at 06:22 -0700, Craig White wrote:
> OK - so next time, instead of removing 'AuthInfoRequired negotiate' I
> would be better off changing it to 'AuthInfoRequired none' - got it.

No, I don't think that will have any effect; the smb backend will still
reset it to 'negotiate'. The bug needs to be fixed in the samba
package.

What is the CUPS device URI of the printer you are seeing this problem
with?

Tim.
*/

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-28-2008, 02:44 PM
Craig White
 
Default F9 - cups - windows shared printer

On Mon, 2008-07-28 at 14:35 +0100, Tim Waugh wrote:
> On Mon, 2008-07-28 at 06:22 -0700, Craig White wrote:
> > OK - so next time, instead of removing 'AuthInfoRequired negotiate' I
> > would be better off changing it to 'AuthInfoRequired none' - got it.
>
> No, I don't think that will have any effect; the smb backend will still
> reset it to 'negotiate'. The bug needs to be fixed in the samba
> package.
>
> What is the CUPS device URI of the printer you are seeing this problem
> with?
----
DeviceURI smb://craig:PASSWORD-REMOVED@AZAPPLE/WIN-WORKSTATION/officejet

Craig

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 02:23 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org