[Samba] Problems printing to remote windows shared printer with 3.0.20

Michael Keightley Michael.Keightley at quadstone.com
Mon Aug 29 21:28:57 GMT 2005


Have just upgraded from 3.0.13 to 3.0.20 on our Solaris domain controller.
Machine is also print server running CUPS-1.1.23.
We have a RICOH network printer that we print to via Samba (the printer seems to have 
a builtin Windows PC).
smbspool is linked to /usr/lib/cups/backend/smb and the appropriate DeviceURI is in
/etc/cups/printers.conf.
This works fine with 3.0.13, but with 3.0.20 I get this error in /var/log/cups/error_log
when printing from either the Solaris machine or XP (after adding the Samba printer).

    I [29/Aug/2005:17:08:21 +0500] Started filter /usr/lib/cups/filter/pstops (PID 24244) for job7007.
    I [29/Aug/2005:17:08:21 +0500] Started backend /usr/lib/cups/backend/socket (PID 24245) for job 7007.
    E [29/Aug/2005:17:09:15 +0500] [Job 7004] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: No ticket cache found for userid=2149
    E [29/Aug/2005:17:09:15 +0500] [Job 7004] Can not get the ticket cache for mk
    E [29/Aug/2005:17:09:15 +0500] [Job 7004] Tree connect failed

I had to swap /usr/lib/cups/backend/smb back to the 3.0.13 binary to get it working again.

Anyone got any ideas?

The printer is not in the same workgroup as the domain controller, but adding this to 
printers.conf got it working before:

DeviceURI smb://administrator:@workgroup/e-710/print

I can also browse OK to the printer and printer spool from an XP machine.

Here is our smb.conf:


[global]
  workgroup = WORK
  server string = %h
  log file = /var/log/samba/%m.log
  load printers = yes
  printing = cups
  printcap name = cups
  domain master = yes
  domain logons = yes
  local master = yes
  preferred master = yes
  name resolve order = wins lmhosts host bcast
  wins support = yes
  os level = 65
  encrypt passwords = yes
  security = user
  logon script = netlogon.bat
  logon path = \\%N\profile\%a\%U
  logon drive = q:
  socket options = TCP_NODELAY IPTOS_LOWDELAY

[profile]
  comment = User Profiles
  path = /home/samba/profile
  browseable = no
  guest ok = yes
  writeable = yes

[printers]
  comment = All Printers
  path = /home/samba/var/spool/public
  browseable = no
  public = yes
  guest ok = yes
  writable = no
  printable = yes

[print$]
  comment = Printer Drivers
  path = /home/samba/drivers
  browseable = yes
  guest ok = no
  read only = yes
  write list = root

[homes]
  comment = Home Directories
  browseable = yes
  guest ok = no
  writable = yes

[netlogon]
  comment = Network Logon Service
  path = /home/samba/%a/netlogon
  guest ok = yes
  writeable = no
  share modes = no



Michael

-- 
Michael Keightley <Michael.Keightley at quadstone.com>   Tel: +44 131 240 3137
Systems Manager, Quadstone Limited,                   Fax: +44 131 220 4492
16 Chester Street, Edinburgh EH3 7RA, Scotland        http://www.quadstone.com


More information about the samba mailing list