> From [EMAIL PROTECTED] Tue Jan  1 15:08:39 2002
> Date: Wed, 2 Jan 2002 00:08:27 +0100
> From: Michal Szymanski <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng
>
> Dear Patrick,
>
> First of all, Happy New Year 2002 :)
>
> I've just installed LPRng on a bunch of Solaris SPARCstations to make
> the spooling system compatible with the Linux/PC machines.
>
> Just a few questions/comments:
>
> 1. The newest (3.8.4) version does not compile on Solaris 2.5.1, failing
> on "src/common/lpd_dispatch.c" file which, in one place, around line 180
> has a "DEBUG1(...)" line using unconditionally AF_LOCAL macro which
> is not defined in Solaris 2.5.1. Following change fixes the problem:
>
> #ifdef AF_LOCAL 
>         DEBUG1("Service_connection: family %d, AF_LOCAL %d, AF_UNIX %d",
>                 sinaddr.sa_family, AF_LOCAL, AF_UNIX );
> #else
>         DEBUG1("Service_connection: family %d, AF_UNIX %d",
>                 sinaddr.sa_family, AF_UNIX );
> #endif

Fixed!

>
>
> 2. The installation scripts do disable native Solaris "lp" system in
> /etc/rc?.d/ but do NOT check for presence of another "lpd" system.
> This was just my case (We've been using PLP for years).

:-) Sigh... PLP will never die... 

>
>
> 3. I was quite confused when, after putting:
>
> REJECT SERVICE=X NOT REMOTEIP=193.0.88.0/255.255.255.0
>
> line into /etc/lpd.perms, suddenly I was unable to communicate with the
> 'lpd' daemon locally in the host on which it was running. I properly
> guessed that it requires
>
> ACCEPT SERVICE=X SERVER
>
> (IMHO due to local connection being done through 127.0.0.1 localhost)
> but this is really confusing. Either it should be explicitely stated in
> the lpd.perms.sample file or (better solution IMHO) localhost connection
> should always be accepted (I cannot see a reason for not doing so).

Hmmm...  Now this is an interesting thought.  The latest 'use unix socket'
fakes a 'localhost' IP address.  I think that a 'better' form is:

ACCEPT SERVICE=X REMOTEIP=193.0.88.0/24,128.0.0.0/8
REJECT SERVICE=X

I will put a note in the lpd.perms file about this.

## # All operations allowed except those specifically forbidden
## DEFAULT ACCEPT
## 
## # Accept connections from hosts on subnet 130.191.0.0 or
## # from the server.
##   ACCEPT SERVICE=X REMOTEIP=130.191.0.0/255.255.0.0,\
##              128.0.0.0/8
## # from a named set of sites
##   ACCEPT SERVICE=X REMOTEHOST=engpc*
## # listed in the /etc/accepthost file
##   ACCEPT SERVICE=X REMOTEHOST=</etc/accepthost
##     - /etc/rejecthost contains list of entries separated
##       by whitespace.  For example:
##            10.0.0.0/8 128.0.0.0/8
##            192.168.10.1  192.168.10.2
##   # don't take them from this particular host
##   REJECT SERVICE=X REMOTEHOST=badhost.eng.com
## # Reject all others
##   REJECT SERVICE=X

>
>
> 4. One question: Having two dozens or so machines, of which 5 or 6 have
> printers locally connected, would it be possible to maintain single
> version of "printcap" file? Until now, I've always had to keep
> separate "printcap-s" for machines having printers attached locally.
> This is probably a RTFM question, but if you find a minute to comment
> on points 1,2 & 3, the answer on 4 won't take you much more time :-)))

Yes.  You use the ':oh' entry:

.common:sd=/var/spool/lpd/%P:mx=0:...

# everybody sends to pr1
lp_on_pr1:.tc=.common
   :[EMAIL PROTECTED]
   :force_localhost@

# and on the pr1 host you now dump to printer
lp_on_pr1:oh=IP.ADDRESS.OF.PR1_HOST:
  :lp=/dev/lp0

>
> best regards and thanks for a great piece of software,
>
> Michal.
>
> -- 
>   Michal Szymanski ([EMAIL PROTECTED])
>   Warsaw University Observatory, Warszawa, POLAND
>

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to