I didn't try by myself, but what about something like

print command = /usr/bin/lpr -P%p -J"%J" -U"%I" -r %f

in smb.conf?

I'm sorry to say that you additionally probably have to change

/usr/src/usr.sbin/lpr/common_source/ctlinfo.c

near line 87 to

#define OTHER_USERID_CHARS  "-_."  /* special chars valid in a userid */

and to recompile lpd:

cd /usr/src/usr.sbin/lpr
make clean
make install

At less I've to do so to make the dot "." a valid character within a user name.

Hope this helps and best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, kheu...@gwdg.de

On Thu, 19 Jul 2012, Wojciech Puchar wrote:

is there any simple way to get data about workstation that prints using lpd from samba?

what i need is to get IP/name of workstation that queued a print job to lpd subsystem through samba.

or is the only way to change everything to print to lpd directly using lpd protocol? quite a bit of work but possible.

I want to do accounting, not just how many pages are printed on each printer (done), but WHO printed it. No problem for local user, but not with samba.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to