Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

CUPS - Store username in Device URI no longer works?

Previously, i.e. OS 10.6.7, you could store a username in the Device URI in /etc/cups/printers.conf as shown below:


smb://username:password@server_name/queue_name


This was quite handy as it meant that users were not prompted to enter a username and password.


However, in OS 10.7 (CUPS 1.5.0) this no longer works and results in:


D [21/Oct/2011:18:44:38 +1100] [Job 23] Backend returned status 1 (failed)

D [21/Oct/2011:18:44:38 +1100] [Job 23] Printer stopped due to backend errors; please consult the error_log file for details.

D [21/Oct/2011:18:44:38 +1100] [Job 23] End of messages

D [21/Oct/2011:18:44:38 +1100] [Job 23] printer-state=5(stopped)

D [21/Oct/2011:18:44:38 +1100] [Job 23] printer-state-message="Invalid printer name"


I'm wondering if there is some CUPS setting I need to change for this to start working again.


Please note: Turning on the Guest Account in Windows is unacceptable as is saving a Username and Password in a Key Chain.

Mac mini, Mac OS X (10.7)

Posted on Oct 21, 2011 12:57 AM

Reply
Question marked as Best reply

Posted on Oct 23, 2011 4:36 PM

It looks like you need to specify the port in the URL, even though the protocol is specified. Bit silly if you ask me.


https://discussions.apple.com/thread/3216160?start=0&tstart=0


Doesn't work: smb://username:password@server_name/queue_name

Does Work: smb://username:password@server_name:139/queue_name

1 reply
Question marked as Best reply

Oct 23, 2011 4:36 PM in response to Jason At PaperCut

It looks like you need to specify the port in the URL, even though the protocol is specified. Bit silly if you ask me.


https://discussions.apple.com/thread/3216160?start=0&tstart=0


Doesn't work: smb://username:password@server_name/queue_name

Does Work: smb://username:password@server_name:139/queue_name

CUPS - Store username in Device URI no longer works?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.