As a bit of further info concerning this problem, the SAMEHOST value
seems to be evaluated correctly if the job is sent/removed from a
machine within the same domain as the print server, e.g.

job sent from host.inf.ed.ac.uk to printserver.inf.ed.ac.uk can be
removed from the same machine, but...

job sent from host.cogsci.ed.ac.uk to printserver.inf.ed.ac.uk can
*not* be removed from the same machine.

I can see in the logs for the first example that it correctly compares
HOST to REMOTEHOST and therefore doesn't attempt to compare it with
with either the IP of the print server or 127.0.0.1:

Same_host: comparing [host 'a.inf'] to [host 'a.inf'], result 0

(contrast this with the example below where it doesn't even print out
a message for comparing with anything but print server IP and
localhost.

Toby

> 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