[cups.general] Re: [Samba] client ip no longer listed in cups page

Helge Blischke h.blischke at srz.de
Sat Feb 19 07:56:09 PST 2005


Ryan Suarez wrote:
> 
> Ryan Suarez wrote:
> | Greetings Samba Admins,
> |
> | We use samba 3.0.7 with cups 1.1.20 to serve printing to XP clients.
> |
> | samba and cups originally sat on the same debian machine.  Due to load
> | issues, we've moved cups to a separate debian machine and added the
> | 'cups server =' directive to smb.conf.
> |
> | After this, the XP client IP is no longer listed in cups page_log, the
> | samba server IP is listed instead.  We need this information for print
> | accounting.
> |
> | Any ideas?
> |
> || Not unless you spool through cupsd running on the Samba
> || box to the remote cups server.
> || cheers, jerry
> 
> Greetings CUPS Admins,
> 
> As Jerry from samba suggested, I'm now spooling samba printjobs from
> cupsd on the samba machine to cupsd on the printserver.
> 
> Now the XP client source IP is properly recorded in the samba server's
> page_log.  However, on the actual printserver's page_log the source IP is
> still being listed coming from samba server's IP.  So this looks like an
> issue with CUPS.
> 
> Please help.  I need this information for proper print accounting...
> 
> Samba server's CUPS config
> --------------------------
> Browsing On
> BrowseAddress 192.168.76.66
> BrowseDeny All
> BrowseAllow 192.168.76.66
> BrowseInterval 30
> BrowseOrder deny,allow
> BrowsePoll 192.168.76.66:631
> 
> Print server's CUPS config
> --------------------------
> Browsing On
> BrowseAddress 192.168.76.67
> BrowseDeny All
> BrowseAllow 192.168.76.67
> BrowseInterval 300
> BrowseOrder deny,allow
> 
> regards,
> Ryan

Try to add the drective
	cups option = job-originating-host-name=%I
to the globals section in your smb.conf (or %M or %m, wether you want
the DNS name or the netbios name of the client machine instead of it's
IP address).

Helge

PS: let us know if that really works, please.

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
tel: +49 30 75301-360




More information about the cups mailing list