Hi there,

I'm using LPRng-3.8.10 under RH Linux 7.1 and am having trouble
getting the SAMEHOST directive to work, i.e. it doesn't.  I submit a
job from host 'a' to print server 'b' and then try and remove it, also
from host 'a' - this fails.

The relevant line in lpd.perms is:

ACCEPT SERVICE=M SAMEHOST SAMEUSER

If I change the line to just...

ACCEPT SERVICE=M SAMEUSER

... then the job can be removed.

I have turned the debugging up as high as necessary to try and see
what is happening, and I do get two messages of the form...

Same_host: comparing [host 'a'] to [host b], result -1
Same_host: comparing [host 'a'] to [localhost], result 1

This suggest to me the line

m = Same_host(check->host, check->remotehost); in permission.c

...is not producing a successful match, as I believe it should.

Can anyone suggest a sensible course of action to follow next?  Also,
has anyone tried debugging lpd with gdb?  I can't seem to get it to
work.

Thanks in advance for any advice.

Cheers
Toby Blake
University of Edinburgh



-----------------------------------------------------------------------------
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