Date: Thu, 19 Jul 2012 17:46:23 +0200 (CEST) From: Konrad Heuer <kheuer2@gwdg.de> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: freebsd-questions@freebsd.org Subject: Re: lpd+samba question Message-ID: <alpine.BSF.2.00.1207191736140.35161@gwdu60.gwdg.de> In-Reply-To: <alpine.BSF.2.00.1207191655580.16978@wojtek.tensor.gdynia.pl> References: <alpine.BSF.2.00.1207191655580.16978@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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, kheuer2@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-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1207191736140.35161>