The people on the samba list are very helpful. I suspect they could answer this question.
Perhaps you can capture the user's name in the variable %U in a preexec command. Then just feed it to LPRng in some fiendishly clever manner. Joel On Thu, Jan 10, 2002 at 07:20:58PM -0500, 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. > ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
