> From [EMAIL PROTECTED] Fri Apr 12 13:19:56 2002
> Date: Fri, 12 Apr 2002 15:38:15 -0400
> From: Robert Williams <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: custom REJECT messages
>
> Hello All,
>
> Is it possible to customize 'error messages' that users receive due to lpd.perms
> permissions? For example, I am allowing root@ a few hosts to control lpc for
> all printers. If I try to do something like 'lpc -Ppname flush' as root from
> a host that gets rejected, I get the following message:
>
> Printer: printername@pserver
> printername@pserver: no
>
> It would be great if I could change that "no" to something more useful (even
> more so if I could use the lpd.perms keys in the message, i.e. REMOTEUSER at
> REMOTEHOST does not have permission to...). 
>
> Any suggestions or tips would be greatly appreciated.
>
>  ~ Bob 
>
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
>

Ummm... There is/was a technique where you would use
numbers to index into an error message table, and then
you could update the table...  You would have to edit the
table and recompile.

At one time I entertained the idea of putting these
into the lpd.conf,  but after I realized there were over 900
messages I gave up...

So I guess the answer is currently 'no'... but you can always
edit the code, create a method,  add the necessary support to the
internationalization,  test it,  and send me the patches (HINT HINT HINT)
and I would use it..

Patrick Powell

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