hi,

the SAMBA macros %M and %m contain the connecting clients internet /
netbios name. If you use something like lpr ... -m%m ... as a print
command the hostname will be in the controlfile in the 'M-line' all the
rest is a fancy script or something like that to get it in your
accounting...

maybe this helps (?)

regards
        ~christoph





On Thu, 10 Jan 2002, Ryan Novosielski wrote:

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


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