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.

Windows Network Printing Connection Timeouts - Lion Specific

Hi Guys,


In a school environment here and starting to update some of the machines to Lion to test compatibility with the systems we utilize.

I have got two machines that have done an update from Snow Leopard to Lion and two that I did a fresh install with using the widely used boot disc method.


Everything was going fine, all the SMB shares were mounting as they should, proxy auth was working and 802.1X auth was fine.


But SMB/Windows printing is screwed. Lion can see and connect through SMB to the Printer Server and access the SMB file shares on that server. When I first tried to print to the Windows hosted printers Lion claimed it could not connect to the server. No problem I thought, something was bound to happen at some point, so I removed and added the printers again manually. Now, while it does let me try to lodge print jobs on those printers it sits there, displays a progress bar and states that it is "Connecting". After roughly 30 seconds, the "Connecting" window disappears and nothing changes at all. The Mac OS X Print API pane is still there with no changes what so ever.


I am assuming that for some reason it is impossible for Lion to communicate with SMB printers now and that the connection is timing out.

This behaviour is exhibited on both the upgraded and clean install machines.

This behaviour is not exhibited on the Snow Leopard (or even the couple of Leopard machines we have lying around) or Windows.


Any ideas?

All help would be greatly appreciated.


Thanks,


Paul

Posted on Jul 21, 2011 2:44 AM

Reply
41 replies

Aug 8, 2011 4:40 AM in response to PaulDab

A bug report has been submitted to CUPS about this issue. There is one other line that intrigues me: "auth-info-required is set to negotiate, but AUTH_UID is not in env" Anyone with CUPS background know what I can set in cups.conf or printers.conf to try and fix this?


Does anyone have the bug id (link) to the issue? I also think there is a problem with CUPS and samba printing. As far I I could figure out when using CUPS and a samba printer, CUPS will use /usr/libexec/cups/backend/smb to send the job to the network printer. This is also what I see when I view the CUPS error log:

D [08/Aug/2011:13:23:15 +0200] [Job 11] Failed to connect to "smb://192.168.0.12/": STATUS_LOGON_FAILURE

D [08/Aug/2011:13:23:15 +0200] [Job 11] Set job-printer-state-message to "Authentication required", current level=ERROR

D [08/Aug/2011:13:23:15 +0200] [Job 11] smb backend (PID=24140) stopped with status 512

D [08/Aug/2011:13:23:15 +0200] [Job 11] smb backend will exit with status 2

D [08/Aug/2011:13:23:15 +0200] [Job 11] Received SIGPIPE

D [08/Aug/2011:13:23:15 +0200] [Job 11] Wrote 1 pages...

D [08/Aug/2011:13:23:15 +0200] [Job 11] Backend returned status 2 (authentication required)

D [08/Aug/2011:13:23:15 +0200] [Job 11] Job held for authentication.

D [08/Aug/2011:13:23:15 +0200] [Job 11] End of messages

D [08/Aug/2011:13:23:15 +0200] [Job 11] printer-state=3(idle)

D [08/Aug/2011:13:23:15 +0200] [Job 11] printer-state-message="Authentication required"

D [08/Aug/2011:13:23:15 +0200] [Job 11] printer-state-reasons=none

Before upgrading to Lion the printer setup works, now I get this error about authentication. I tried to call the smb directly, but with the same results:

DEVICE_URI="smb://192.168.0.12/PRINTER_NAME" AUTH_INFO_REQUIRED="none" /usr/libexec/cups/backend/smb 42 me sometitle 1 test.ps

Trying different printing protocols is not option for me, since they are not enabled on the printer side. Also removing entries from the keychain did not help.


Does anyone have some more insight?

Aug 8, 2011 6:33 AM in response to PaulDab

In Snow Leopard my printer worked fine with each user entering their Account name and password for the MAC to print on a shared printer on XP. After installing Lion no one could print. I finally found that entering the username and password for the XP machine would allow us to print but would not save this information to key chain. Using keychain access and deleting keys related to the printer allowed the next print attempt to succeed and save the new information to key chain. I did not have to reinstall the printer. This was my experience.

Aug 15, 2011 12:31 PM in response to PaulDab

What worked in my case:


The issue was that spoolss, the "new" samba, was failing when authenticating to windows users who had special characters in their passwords. With snow leopard, and earlier, this was not a problem.


The workaround was to have users with special characters in their windows logon passwords (such as % symbols...), simply remove them and use alphanumerics only.


This change allows for only legal characters in the smb: URI that will be presented by lion clients to the windows printer host.

Aug 16, 2011 9:42 AM in response to PaulDab

Hi Guys,


this is what worked for me adding a Windows Domain Printer:


1. Point Safari to http://localhost:631

2. Select top menu "Administration"

3. Select "Add Printer"

4. Authenticate if requested

5. Select "Windows printer via spoolss" and press "Continue"

6. Use the following sintaxe to add the printer "smb://DOMAIN;LOGIN:PASSWORD@SERVERNAME/PRINTQUEUE" in the "Connection" field and press "Continue" (replace CAPITALS with your own configuration)

7. Introduce a name in the "Name" field, for example MyPrinter

8. Select your printer Manufacturer from the "Make" list and press "Continue"

8. Select your printer Model from the "Model" list and press "Add Printer"


Good Luck!

Aug 16, 2011 10:10 AM in response to Stylle @iMac

Thank you Stylle!


I had been struggling with this since installing Lion.


Per another suggestion I removed the special character in my password, which by itself did not seem to work.


But after doing that and then following your instructions I am now printing. The difference from what I was entering for the SMB://... was the addition of the DOMAIN;


Thanks for posting and solving my problem.


Jay


BTW - my printer is hosted on a Windows 2000 computer. It has a local administrator login and password, which I tried, but it did not work with that information. Only the steps above, using a domain login (and removing the special characters in my password) worked for me.

Aug 17, 2011 7:39 AM in response to danielfrommuenster

Oops, my post was a bit too fast. I can print again, but there are some funny glitches. Sometimes the job is halted in the print queue with the note "authentication required". When I click on Continue, the entire printer queue freezes (spinning wheel) and has to be force-quit. I can circumvent this issue by simply deleting the job, going back to my application and starting another print job. That one passes right through to the printer...


So, I'm almost there. Does anybody have a similar issue? Any solutions? I's love to try Stylle's solution, but what I don't like about it is the fact that you have to write down the password entirely unprotected...


Daniel

Windows Network Printing Connection Timeouts - Lion Specific

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