Skip navigation

Windows network printing in OS 10.7

2177 Views 4 Replies Latest reply: Jan 5, 2012 9:27 AM by olivier288 RSS
ksejr Calculating status...
Currently Being Moderated
Aug 9, 2011 1:33 AM

Hi,

 

I'm currently sitting in a Windows environment with print servers running Windows 2008. Our setup allow for printing through Samba but not LPD/LPR. This is

working well with other versions of OS X just not 10.7. We are running with multiple domains so the printer URL usually looks something like this

 

smb://domain/servername/printername

 

All the printers we tested on are installed with the HP Universal Printing PCL 6 driver. It should be mentioned that we have had no problems connecting to fileshares using the Samba protocol.

 

I understand from other discussions that this is not an isolated incident and I would like to know if anyone has come up with a solution/fix.

 

Symptoms:

 

Upon submitting the job and entering the credentials CUPS responds with the state "Unable to connect to server" and the printer is paused.

 

Error Log:

D [09/Aug/2011:10:06:03 +0200] [Job 15] envp[24]="DEVICE_URI=smb://domain/server/printer"

D [09/Aug/2011:10:06:03 +0200] [Job 15] Started filter /usr/libexec/cups/filter/cgpdftops (PID 641)

D [09/Aug/2011:10:06:03 +0200] [Job 15] Started filter /usr/libexec/cups/filter/pstops (PID 642)

D [09/Aug/2011:10:06:03 +0200] [Job 15] Started backend /usr/libexec/cups/backend/smb (PID 643)

 

D [09/Aug/2011:10:06:03 +0200] [Job 15] Started smb backend (PID 646)

D [09/Aug/2011:10:06:03 +0200] [Job 15] STATE: +connecting-to-device

D [09/Aug/2011:10:06:03 +0200] [Job 15] Connecting to printer...

D [09/Aug/2011:10:06:03 +0200] [Job 15] Set job-printer-state-message to "Connecting to printer...", current level=INFO

D [09/Aug/2011:10:06:03 +0200] [Job 15] Looking up "student"...

 

D [09/Aug/2011:10:06:03 +0200] [Job 15] rpc_open_printer: RPC error 0x16c9a034

D [09/Aug/2011:10:06:03 +0200] [Job 15] RpcOpenPrinterEx returned 0xc002001d!

D [09/Aug/2011:10:06:03 +0200] [Job 15] Set job-printer-state-message to "Unable to connect to printer", current level=ERROR

 

D [09/Aug/2011:10:06:03 +0200] [Job 15] smb backend (PID=646) stopped with status 256

D [09/Aug/2011:10:06:03 +0200] [Job 15] smb backend will exit with status 1

 

D [09/Aug/2011:10:06:03 +0200] [Job 15] Backend returned status 1 (failed)

D [09/Aug/2011:10:06:03 +0200] [Job 15] Printer stopped due to backend errors; please consult the error_log file for details.

D [09/Aug/2011:10:06:03 +0200] [Job 15] End of messages

D [09/Aug/2011:10:06:03 +0200] [Job 15] printer-state=5(stopped)

D [09/Aug/2011:10:06:03 +0200] [Job 15] printer-state-message="Unable to connect to printer"

D [09/Aug/2011:10:06:03 +0200] [Job 15] printer-state-reasons=paused

 

Tested solutions:

 

So far we have tried the following without any luck

 

1. Included username and password in the URL, i.e., smb://username:password@domain/servername/printername

 

2. Establishing connecition with a Kerberos ticket instead of username and password.

 

3. Tried different variations of the username, i.e., domain\username, username@domain.This was tested using smb://servername/printername.

 

4. Included port in the printer URL, i.e., smb://servername:port/printername.

Mac OS X (10.7)
  • b0bah123 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 30, 2011 3:07 AM (in response to ksejr)

    Hi,

    I have got absolutely the same problem and I can't to resolve it.

    I have another problem which may be related to. After update to 10.7 & 10.7.1 I can't to authenticate with my corporate MS Active Directory with message "Can't connect to server".

    It's look as global samba+AD problem in Lion.

    Did you find a solution for the problem?

  • Arenadev Calculating status...
    Currently Being Moderated
    Sep 3, 2011 10:48 PM (in response to ksejr)

    Hi,

     

    I tried everything which i can, but it goes wrong way.

     

    There is no authentication problem, Lion just cannot make connection with Samba on WIndows.

     

    Is there any solutions?

  • Stanley Horwitz Level 4 Level 4 (2,700 points)
    Currently Being Moderated
    Sep 19, 2011 7:46 AM (in response to Arenadev)

    Your best option is to open a case with Apple if you have AppleCare and complain. If you don't have AppleCare, at least file a bug report at http://www.apple.com/feedback/macosx.html and then revert back to Snow Leopard until this issue is resolved.

  • olivier288 Calculating status...
    Currently Being Moderated
    Jan 5, 2012 9:27 AM (in response to Arenadev)

    Sorry guys, but I have 10.7.2 bound to an AD, and SMB printers on Windows print servers, and it works like a charm with dozens of printers. I use a network mobile account (that is why you will see later "smb will run as user 1027876906", this is my UID).

     

    I don't remember if this was the case with 10.7.0 or .1, as we started directly with 10.7.2 (because crash bugs in directory Utility GUI when joining AD). FYI, I have a valid Kerberos ticket in TicketViewer app when I print (something like user@company.corp), and I even do not type any prompt for username/pwd whn I hit print.

     

    I always configure my printer like this : smb://server/NameOfThePrinterOnWindowsPrintServer

     

    Sorry, I needed to sanitize the output, but names are consistent :

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[11]="SERVER_ADMIN=root@computername.dns.suffix.company.corp"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[12]="SOFTWARE=CUPS/1.5.0"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[13]="TMPDIR=/private/var/spool/cups/tmp"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[14]="USER=root"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[15]="CUPS_SERVER=/private/var/run/cupsd"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[16]="CUPS_ENCRYPTION=IfRequested"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[17]="IPP_PORT=631"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[18]="CHARSET=utf-8"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[19]="LANG=en_US.UTF-8"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[20]="APPLE_LANGUAGE=en-US"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[21]="PPD=/private/etc/cups/ppd/capj_bw.ppd"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[22]="RIP_MAX_CACHE=128m"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[23]="CONTENT_TYPE=application/pdf"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[24]="DEVICE_URI=smb://servername/capj_bw"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[25]="PRINTER_INFO=capj_bw"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[26]="PRINTER_LOCATION="

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[27]="PRINTER=capj_bw"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[28]="PRINTER_STATE_REASONS=none"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[29]="CUPS_FILETYPE=document"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[30]="FINAL_CONTENT_TYPE=printer/capj_bw"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[31]="AUTH_I****"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[32]="AUTH_N****"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] envp[33]="AUTH_U****"

    I [04/Jan/2012:17:55:14 +0100] [Job 3] Started filter /usr/libexec/cups/filter/cgpdftops (PID 3388)

    I [04/Jan/2012:17:55:14 +0100] [Job 3] Started filter /usr/libexec/cups/filter/pstops (PID 3389)

    I [04/Jan/2012:17:55:14 +0100] [Job 3] Started filter /Library/Printers/hp/filter/hpPostProcessing.bundle/Contents/MacOS/hpPostProces sing (PID 3390)

    I [04/Jan/2012:17:55:14 +0100] [Job 3] Started backend /usr/libexec/cups/backend/smb (PID 3391)

    D [04/Jan/2012:17:55:14 +0100] Discarding unused job-state-changed event...

    D [04/Jan/2012:17:55:14 +0100] Returning IPP successful-ok for Print-Job (ipp://localhost:631/printers/capj_bw) from localhost

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients and dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 17 POST /printers/capj_bw HTTP/1.1

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdAuthorize: No authentication data provided.

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 17 1.1 Get-Printer-Attributes 1

    D [04/Jan/2012:17:55:14 +0100] Get-Printer-Attributes ipp://localhost/printers/capj_bw

    D [04/Jan/2012:17:55:14 +0100] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/capj_bw) from localhost

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 18 POST / HTTP/1.1

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdAuthorize: No authentication data provided.

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 17 POST /printers/HP_LaserJet_P3005 HTTP/1.1

    ……………

    D [04/Jan/2012:17:55:14 +0100] cupsdAuthorize: No authentication data provided.

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 17 1.1 Get-Printer-Attributes 1

    D [04/Jan/2012:17:55:14 +0100] Get-Printer-Attributes ipp://localhost/printers/capj_bw

    D [04/Jan/2012:17:55:14 +0100] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/capj_bw) from localhost

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdAcceptClient: 25 from localhost (Domain)

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 25 POST / HTTP/1.1

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdAuthorize: No authentication data provided.

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 25 1.1 CUPS-Get-Printers 1

    D [04/Jan/2012:17:55:14 +0100] CUPS-Get-Printers

    ………………………….

    D [04/Jan/2012:17:55:14 +0100] [Job 3] smb will run as user 1027876906

    D [04/Jan/2012:17:55:14 +0100] [Job 3] print job starting...

    D [04/Jan/2012:17:55:14 +0100] [Job 3] adding fd 0 to xpc_dictionary

    D [04/Jan/2012:17:55:14 +0100] [Job 3] adding fd 2 to xpc_dictionary

    D [04/Jan/2012:17:55:14 +0100] [Job 3] adding fd 4 to xpc_dictionary

    D [04/Jan/2012:17:55:14 +0100] [Job 3] Starting backend /usr/libexec/cups/apple/smb...

    D [04/Jan/2012:17:55:14 +0100] [Job 3] Started backend (PID 3396)

    D [04/Jan/2012:17:55:14 +0100] [Job 3] print job started

    D [04/Jan/2012:17:55:14 +0100] [Job 3] waiting for print job (pid = 3396) to finish

    D [04/Jan/2012:17:55:14 +0100] [Job 3] adding fd 2 to xpc_dictionary

    D [04/Jan/2012:17:55:14 +0100] cupsdAcceptClient: 26 from localhost (Domain)

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 26 POST / HTTP/1.1

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdAuthorize: No authentication data provided.

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 26 1.1 CUPS-Get-Printers 1

    D [04/Jan/2012:17:55:14 +0100] CUPS-Get-Printers

    D [04/Jan/2012:17:55:14 +0100] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] STATE: +connecting-to-device

    I [04/Jan/2012:17:55:14 +0100] [Job 3] Connecting to printer...

    D [04/Jan/2012:17:55:14 +0100] [Job 3] Set job-printer-state-message to "Connecting to printer...", current level=INFO

    D [04/Jan/2012:17:55:14 +0100] [Job 3] Looking up "servername"…

    D [04/Jan/2012:17:55:14 +0100] Discarding unused job-progress event...

    D [04/Jan/2012:17:55:14 +0100] Discarding unused printer-state-changed event...

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 16 POST / HTTP/1.1

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Printing jobs and dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdAuthorize: No authentication data provided.

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 16 1.1 CUPS-Get-Printers 1

    D [04/Jan/2012:17:55:14 +0100] CUPS-Get-Printers

    D [04/Jan/2012:17:55:14 +0100] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] cgpdftops - using PPD file "/private/etc/cups/ppd/capj_bw.ppd"...

    D [04/Jan/2012:17:55:14 +0100] [Job 3] PS Matching Mode = AP_ApplicationColorMatching

    D [04/Jan/2012:17:55:14 +0100] [Job 3] cgpdftops - languageLevel = 3, mediaBox.size.width = 612, mediaBox.size.height = 792

    D [04/Jan/2012:17:55:14 +0100] [Job 3] cgpdftops - documentMediaBox.size.width = 612, documentMediaBox.size.height = 792

    D [04/Jan/2012:17:55:14 +0100] [Job 3] hpPostProcessing launched

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 26 POST / HTTP/1.1

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"

    D [04/Jan/2012:17:55:14 +0100] cupsdAuthorize: No authentication data provided.

    D [04/Jan/2012:17:55:14 +0100] cupsdReadClient: 26 1.1 Get-Printer-Attributes 1

    D [04/Jan/2012:17:55:14 +0100] Get-Printer-Attributes ipp://localhost/printers/capj_bw

    D [04/Jan/2012:17:55:14 +0100] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/capj_bw) from localhost

    D [04/Jan/2012:17:55:14 +0100] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"

    D [04/Jan/2012:17:55:14 +0100] [Job 3] Page = 612x792; 12,12 to 600,780

    D [04/Jan/2012:17:55:14 +0100] [Job 3] slow_collate=0, slow_duplex=0, slow_order=0

    D [04/Jan/2012:17:55:14 +0100] [Job 3] Before copy_comments - %!PS-Adobe-3.0

    D [04/Jan/2012:17:55:14 +0100] [Job 3] %!PS-Adobe-3.0

    D [04/Jan/2012:17:55:14 +0100] [Job 3] %APL_DSC_Encoding: UTF8

    and so on...

     

     

    Look at your : DEVICE_URI=smb://domain/server/printer" and D [09/Aug/2011:10:06:03 +0200] [Job 15] Looking up "student"...

     

    Names are not identical... Maybe it is also because you sanitized your output, but just make sure CUPS process can perform a name lookup in your DNS with the name used at line "D [09/Aug/2011:10:06:03 +0200] [Job 15] Looking up "student"...". Do not forget about SPNs in AD, maybe your printer is not correctly declared, or reverse DNS for your Mac hostname is not possible or your DHCP fails to update DNS, or something does not have a correct suffix name or stuff like this... although I have no idea what our Windows AD experts have configured in our AD, and I have not very good knowledge about DNS.

     

    So it is not likely a Lion or Apple AD module issue (at least not in 10.7.2).

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.