Bug 17852 - Make lpr do the filtering instead of lpd
Summary: Make lpr do the filtering instead of lpd
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: LPRng
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Crutcher Dunnavant
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-09-26 09:13 UTC by Jarno Huuskonen
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-09-26 15:35:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Jarno Huuskonen 2000-09-26 09:13:23 UTC
Hi,

For workstations it would make sense? to make lpr do formatting/filtering
instead of lpd. So there would be no need to run lpd on workstations.

Also using non setuid clients (lpr etc.) would be better from security
standpoint.

-Jarno

Comment 1 Seth Vidal 2000-09-26 15:35:34 UTC
lprng can do this now - but lpr will never do filtering.

you don't need lpd running at all though.

just have a central print server on your network and you can have lpr funnel the
job to the central server and the central server does all the work.

having lpr do all the work is a "bad idea" b/c it means MUCH more work to do on
the client side - which could be a lot of systems.

Finally if you want to run the daemon but not be at risk use either 1. the
lpd.perms file to control who can get access to the daemon or 2. ipchains to
restrict the daemon to localhost-only access.

go to: http://www.astart.com/LPRng/LPRng.html
for more information about lprng.
-sv


Comment 2 Crutcher Dunnavant 2000-10-01 15:41:04 UTC
Or, from the LPRng lpd manpage:

BOUNCE QUEUES
       Normally job files are  forwarded  to  a  printer  without
       modification.  The flag makes the queue a bounce queue and
       allows banners to be generated and data  files  to  passed
       through  the appropriate format filter.  The entire output
       of this process is then passed to the destination with the
       format  specified  by  the  bq_format option (default l or
       binary).   See  PRINTING  OPERATIONS  for  details   about
       filters.   For  example, the following printcap entry will
       filter format f files.
       testbq:sd=/usr/spool/testbq:
         :lpd_bounce
         :bq_format=l
         :lp=final@host
         :if=/usr/lib/filter_for_f
         :mf=/usr/lib/filter_for_m
         :pf=/usr/lib/filter_for_pr

Anyway, I am not rewriting the spooler just to put filtering into the lpr client
(if you want prefiltering, you can use the filters and route their output into
lpr, even make a nice pretty script to do so.)

Comment 3 Jarno Huuskonen 2000-10-02 04:48:47 UTC
Instead of rewriting LPRng I was thinking about using
lpr_bounce for the filtering. A while back I tested this a little bit
but the result was that the redhat printfilters didn't work "out of the box"
(I think it was something with lpd/lpr used different parameters when calling
filter)

For users simple lpr command should be easier than piping the file thru gs with
quite a few commandline parameters.

more info:
http://www.astart.com/LPRng/lprbounce.htm

-Jarno



Note You need to log in before you can comment on or make changes to this bug.