PaperCut LPD Service

KB Home   |   PaperCut LPD Service

Administrators building a print network to support cross platform printing have long relied on the Windows LPD Services as a convenient way to get print jobs onto a Windows Print Server from a variety of clients. Historically, this service was provided by Windows from Windows NT onwards to support printing from Unix systems.

One of the attractive features of this type of interoperability is that clients connecting to the LPD service aren’t required to authenticate. The LPD service will simply accept print jobs with little scrutiny via this service and print them to end devices using the queues the server hosts.

With Microsoft announcing that the LPD service will shortly be deprecated, PaperCut now ships with its own LPD Service, to continue support for this method of print networking, and to provide end-to-end support for customers that use PaperCut and LPD.

Using the PaperCut LPD Service

The PaperCut LPD Service allows print network administrators to connect disparate systems to a Windows Print Server, allowing the server to accept jobs from:

  • Mac Clients/Servers
  • Linux Clients/Servers
  • AS400 Servers
  • Mainframes
  • …any other client or server that supports LPR printing (LPD is the ‘server’, LPR is the client)
  • Bypass any authentication requirements to print to a Windows Server

Installing the PaperCut LPD Service

PaperCut v15.1 or later server installations will ship the PaperCut LPD Service with a wizard style installer.

[appath]\providers\lpd\win\pc-lpd-installer.exe

The LPD Service listens on port 515 by default, so Administrators will need to ensure that this port is open to requests from clients (check that the port is not blocked by your firewall). The installation wizard will also check for previous versions of the Windows LPD Service and disable these to ensure there is no port conflict.

Note: The PaperCut LPD Service requires that you share the printer before being able to connect to it via LPR. This is different from Microsoft’s implementation, but provides an extra level of control over which queues can be printed to via LPR. No permissions need to be set on the queue, so Windows users can still be prevented from connecting to these shares.

Connecting to an LPD Service

Most operating systems, including Windows, support connecting to an LPD Service via the LPR printing protocol. The information you will need is;

  • The address of the server running the PaperCut LPD Service.
  • The name of the queue. Either share name or queue name will work.

Note: Some systems won’t allow spaces in queue names, so a share or queue name that does not include spaces will improve likelihood of connection.

An example in CUPS

  1. Log into the CUPS Administration UI
  2. Click Administration >> Add Printer
  3. Scroll to Other Network Printers and choose ‘LPD/LPR Host or Printer’
  4. Enter in the connection string using the example format on the page. i.e.
    lpd://hostname/queue
    lpd://10.100.65.38/Global
    Noting again, queue name can be either the share name or print queue name on the Print Server and in the case of CUPS cannot contain spaces.
  5. Create the CUPS queue entering in the rest of the required information, such as Name, Description, Location etc.
  6. Choose the driver and finish the install with Add Printer

Print jobs will be accepted via LPD into the Windows printing system.

Next steps

It’s important at this point to consider how the print jobs are being tracked. The print jobs will be sent with the username from the client system: i.e. the Unix, Linux, Mac, etc username associated with the print job. If the username isn’t consistent with the Windows username you wish to bill the job for, you may need to consider additional PaperCut features like:

Troubleshooting

Q Print jobs don’t come out. They just disappear. What’s going on?

The most likely reason for this is the use of Mode 4 or Type 4 printer drivers on the Windows Print queue. Due to changes in the way the Windows Print Spooler works with these new drivers you can not use a Non-Windows Mode 4 driver to print to the queue.

In this situation we recommend that you use Mode 3 or Type 3 drivers.

If you must use Mode 4 / Type 4 (e.g. WindowsRT) then we suggest that you have duplicate print queues setup, perhaps on a SecondaryServerSoftware

Q Why do jobs fail when non-ASCII characters are used in either the jobname or the username?

Check out this article on: Fixing encoding problems/unintelligible characters appearing in PaperCut LPD job queue.


Categories: Architecture, Implementation / Deployment


[-Keywords: PSFU, Print Services for Unix, Windows TCP/IP Services, LPD, LPR]

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on September 01, 2016, at 10:53 PM
Printable View   |   Article History   |   Edit Article