> From [EMAIL PROTECTED] Fri Jan 11 07:13:59 2002
> Date: Thu, 10 Jan 2002 19:20:58 -0500 (EST)
> From: Ryan Novosielski <[EMAIL PROTECTED]>
> To: LPRng Mailing List <[EMAIL PROTECTED]>
> Subject: LPRng: LPRng and Samba
>
> This is technically more of a Samba problem, but I bet someone will be
> willing to help me a little here.
>
> The problem here is that we have 4 campus servers. Each one hosts a Samba
> domain. Sometimes, users for whatever reason will go to a different campus
> (where they may or may not have an account -- the problem occurs when they
> do not). They log in using the Samba domain of their home site, but
> attempt to use printers on the campus they are visiting. While the PC they
> are using knows what their username is, and I can take this on good faith,
> since they do not have an account on the machine Samba serving the
> printers, their jobs print as the network guest user. This is clearly a
> problem for accounting. Does anyone know of a way for LPRng to find out
> who the client PC is logged in as by the time accounting occurs? We don't
> wish to just give away pages to students who happen to travel. It's a
> shame the setup is the way it is, but I'm just looking for a way to make
> this work in our current environment.
>
> Thanks for any help you may wish to give me!
>
> ---- _  _ _  _ ___  _  _  _
> |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
> |$&| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
> \__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630

The trick, as somebody pointed out a while ago, is to get the user information
put into the job file.

You can do this several ways:  use the class field, 'mail to' stuff, or even
the job name:

   print command = lpr -C%u@%m 
   print command = lpr -J%u@%m 
   print command = lpr -m%u@%m 

You might want to modify the lpd.conf file a bit:
# Purpose: accounting at end (see also af, la, ar)
#   default ae=jobstart $H $n $P $k $b $t  (STRING)
as=jobend $H $n $P $k $b $t $C $M $J
...
# Purpose: accounting at start (see also af, la, ar)
#   default as=jobstart $H $n $P $k $b $t  (STRING)
as=jobstart $H $n $P $k $b $t $C $M $J

(the $J forces '-Jvalue' to be put into the accoutning file)

I suppose that I should add these to the list of variables used for accounting

Patrick Powell                 Astart Technologies,
[EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
Network and System             San Diego, CA 92123
  Consulting                   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.lprng.com)

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