Printer name is invalid

Snyder, Hal hal_snyder at sdsi.com
Fri May 14 19:24:38 GMT 1999


The mailing list archives mention this as a problem, but I
didn't see any specific steps given to fix it:

We have Samba running on four servers - two at Samba version
1.9.18.p10 and two at 2.0.3.

One of the 2.0.3 servers is on Solaris 2.7, 3/99 update. It
has an smb.conf file essentially identical to that of the
other 2.0.3 system, but it's impossible to add a printer on
this system to NT W4 Sp3/4/5. If we do
  My Computer / Printers / Add Printer
and browse, the printer shows up for the Solaris host, but
if you put the cursor over the printer name, then under the
browse we see the helpful message:

  Printer information
  Error: The handle is invalid.

Double-clicking the printer gives an error pop-up saying

  Could not connect to the printer. The printer name is invalid.

It *is* possible to net use the printer to LPT1: from a command
window and print to it.

Any ideas on how to tackle this one?

BTW, the other 2.0.3 system runs OpenBSD 2.5. It also had this
problem for several days, then the problem mysteriously vanished.
Now the "printer driver" name isn't picked up. (The same driver
name is picked up from our other two servers.)

We've tried several permutations, but here's the latest
smb.conf from the Solaris 2.7 system:

[global]

   workgroup = MAIN

   netbios name = SOLAR7
   name resolve order = host wins

   server string = Samba %v
   hosts allow = 192.168.47.
   load printers = yes

   log file = /var/log/log.%m
   max log size = 50
   security = server
   password server = MAINPDC

   socket options = TCP_NODELAY

   interfaces = 192.168.47.75/24
   local master = no
   wins support = no
   wins server = 192.168.47.1
   dns proxy = no

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

[printers]
   comment = All Printers

   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes
   printer driver = HP LaserJet 5Si/5Si MX PS


More information about the samba mailing list