> What I want is either to have AuthID in the accounting script's environment,
> something like "ACCEPT REMOTEUSER=AUTHUSER" in lpd.perms or to understand
> how to do it otherwise.
> 

our users are all on windows and they log on through a samba PDC server. there 
is printer entry
for all users and the print job gets sent to a remote printer server(LPRng 
installed).

the base accounting script comes with LPRng can extract the user name and other 
useful information
before the job get printed. You will have to add extra code to it in order to 
do the user quota
checking against quota database. Base on their quota, you can reject or accept 
the job. 

only one pitfall with this setup is that this is post-quota checking. i.e user 
is able to print as
long as they have quota available. say if user has 1 page left and s/he can 
still print 100 pages.
I am sure you can set up strict policy about this or use SNMP to solve it.

the LPRng should setup to accept job only from the samba PDC server so that 
jobs from everywhere
else gets rejected. the printer should be setup to accept job only from LPRng 
server.

There maybe other ways to do it, but that's briefly how I did it. I actually 
wrote up a doc along
with the accounting script/config files after I finished our printer project 
last winter. here:
http://econ.yorku.ca/~qiang/lprng/print.server.howto.html

HTH,

James.


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-----------------------------------------------------------------------------

Reply via email to