Problems with Printer-Support for NT with SAMBA-TNG 2.6

Sven Packebusch svenpackebusch at firemail.de
Wed Aug 30 15:30:13 GMT 2000


Hi all,

I got a local installed Printer on my Samba-box (HP LaserJet 4000). My problem is that printing won't work. I configured it once with the REDHAT-Filter, once just raw. Both won't work.

The System is REDHAT 6.2.

My smb.conf:
# Global parameters
[global]
        workgroup = WITNG
        netbios name = TNT
        server string = Samba Server TNG
        interfaces = 193.196.182.173
        encrypt passwords = Yes
        update encrypted = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *password* %n\n *password* %n\n *success*
        unix password sync = Yes
        log level = 99
        log file = /usr/local/samba/var/log/samba/log.%m
        max log size = 50
        domain group map = /usr/local/samba/private/domaingroup.map
        domain logons = Yes
        os level = 65
        preferred master = True
        domain master = True
        dns proxy = No
        wins support = Yes
        printing = lprng
        lppause command = lpc hold %p %j
        lpresume command = lpc release %p %j
        queuepause command = lpc stop %p
        queueresume command = lpc start %p

[homes]
        comment = Home Directories
        read only = No

[Laserdr]
        comment = Drucker im WI-Labor
        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        print command = lpr -P %p
        printer name = loclaser
        printer driver = HP LaserJet 4000 Series PCL 6
        printer driver location = \\TNT\Laser

[Laserraw]
        comment = Drucker im WI-Labor
        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        print command = lpr -P %p
        printer name = locraw
        printer driver = HP LaserJet 4000 Series PCL 6
        printer driver location = \\TNT\Laser

[Laser]
        path = /tmp/WI2K_NT/
        guest ok = Yes


The logs are:


log.smbd:
(Could it be, that it is a problem with the lp-servicenumber, what does it mean??? It is marked by ####### down there...)

*****
process_logon_packet: Logon from 193.196.182.137: code = 0x7
Got SIGTERM: going down...
[2000/08/30 17:06:53, 1] nmbd/nmbd.c:main(759)
  Netbios nameserver version TNG-alpha started.
  Copyright Andrew Tridgell 1994-1998
  doing parameter log file = /usr/local/samba/var/log/samba/log.%m
  doing parameter max log size = 50
  doing parameter domain group map = /usr/local/samba/private/domaingroup.map
  doing parameter domain logons = Yes
  doing parameter os level = 65
  doing parameter preferred master = True
  doing parameter domain master = True
  doing parameter dns proxy = No
  doing parameter wins support = Yes
  doing parameter printing = lprng
  doing parameter lppause command = lpc hold %p %j
  doing parameter lpresume command = lpc release %p %j
  doing parameter queuepause command = lpc stop %p
  doing parameter queueresume command = lpc start %p
[2000/08/30 17:06:53, 4] param/loadparm.c:lp_load(3533)
  pm_process() returned Yes

################################################

[2000/08/30 17:06:53, 7] param/loadparm.c:lp_servicenumber(3630)
  lp_servicenumber: couldn't find homes
services not loaded
lp_file_list_changed()

################################################

file /usr/local/samba/lib/smb.conf -> /usr/local/samba/lib/smb.conf  last mod_time: Wed Aug 30 17:05:32 2000

codepage_initialise: client code page = 850
load_client_codepage: loading codepage 850.
Adding chars 0x85 0xb7 (l->u = True) (u->l = True)
Adding chars 0xa0 0xb5 (l->u = True) (u->l = True)
Adding chars 0x83 0xb6 (l->u = True) (u->l = True)
Adding chars 0xc6 0xc7 (l->u = True) (u->l = True)
Adding chars 0x84 0x8e (l->u = True) (u->l = True)
Adding chars 0x86 0x8f (l->u = True) (u->l = True)
Adding chars 0x91 0x92 (l->u = True) (u->l = True)
Adding chars 0x87 0x80 (l->u = True) (u->l = True)
Adding chars 0x8a 0xd4 (l->u = True) (u->l = True)
Adding chars 0x82 0x90 (l->u = True) (u->l = True)
Adding chars 0x88 0xd2 (l->u = True) (u->l = True)
Adding chars 0x89 0xd3 (l->u = True) (u->l = True)
Adding chars 0x8d 0xde (l->u = True) (u->l = True)
Adding chars 0xa1 0xd6 (l->u = True) (u->l = True)
Adding chars 0x8c 0xd7 (l->u = True) (u->l = True)
Adding chars 0x8b 0xd8 (l->u = True) (u->l = True)
Adding chars 0xd0 0xd1 (l->u = True) (u->l = True)
Adding chars 0xa4 0xa5 (l->u = True) (u->l = True)
Adding chars 0x95 0xe3 (l->u = True) (u->l = True)
Adding chars 0xa2 0xe0 (l->u = True) (u->l = True)
Adding chars 0x93 0xe2 (l->u = True) (u->l = True)
Adding chars 0xe4 0xe5 (l->u = True) (u->l = True)
Adding chars 0x94 0x99 (l->u = True) (u->l = True)
Adding chars 0x9b 0x9d (l->u = True) (u->l = True)
Adding chars 0x97 0xeb (l->u = True) (u->l = True)
Adding chars 0xa3 0xe9 (l->u = True) (u->l = True)
Adding chars 0x96 0xea (l->u = True) (u->l = True)
Adding chars 0x81 0x9a (l->u = True) (u->l = True)
Adding chars 0xec 0xed (l->u = True) (u->l = True)
Adding chars 0xe7 0xe8 (l->u = True) (u->l = True)
Adding chars 0x9c 0x0 (l->u = False) (u->l = False)
load_unicode_map: loading unicode map for codepage 850.
Netbios name list:-
my_netbios_names[0]="TNT"
lp_file_list_changed()
file /usr/local/samba/lib/smb.conf -> /usr/local/samba/lib/smb.conf  last mod_time: Wed Aug 30 17:05:32 2000

Becoming a daemon.
started asyncdns process 2220
fcntl_lock 5 6 0 1 1
fcntl_lock: Lock call successful
Opening sockets 137
bind succeeded on port 137
bind succeeded on port 138
open_sockets: Broadcast sockets opened.
added interface ip=193.196.182.173 bcast=193.196.182.255 nmask=255.255.255.0
bind succeeded on port 137
bind succeeded on port 138
making subnet name:193.196.182.173 Broadcast address:193.196.182.255 Subnet mask:255.255.255.0
making subnet name:UNICAST_SUBNET Broadcast address:193.196.182.173 Subnet mask:193.196.182.173
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was Datei oder Verzeichnis nicht gefunden
load_lmhosts_file: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error was Datei oder Verzeichnis nicht gefunden
Loaded hosts file
add_name_to_subnet: Added netbios name *<00> with first IP 193.196.182.173 ttl=0 nb_flags=40 to subnet WINS_SERVER_SUBNET
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "*<20>", "*<00>", 88 )
add_name_to_subnet: Added netbios name *<20> with first IP 193.196.182.173 ttl=0 nb_flags=40 to subnet WINS_SERVER_SUBNET
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "__SAMBA__<20>", "*<20>", 88 )
add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 193.196.182.173 ttl=0 nb_flags=40 to subnet WINS_SERVER_SUBNET
nmbd_subnetdb:namelist_entry_compare()
-1 == memcmp( "__SAMBA__<00>", "__SAMBA__<20>", 88 )
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "__SAMBA__<00>", "*<20>", 88 )
add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 193.196.182.173 ttl=0 nb_flags=40 to subnet WINS_SERVER_SUBNET
initialise_wins: add name: TNT#00 ttl = 518076 first IP 193.196.182.173 flags = 46
nmbd_subnetdb:namelist_entry_compare()
-1 == memcmp( "TNT<00>", "__SAMBA__<00>", 88 )
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "TNT<00>", "*<20>", 88 )
add_name_to_subnet: Added netbios name TNT<00> with first IP 193.196.182.173 ttl=518076 nb_flags=46 to subnet
WINS_SERVER_SUBNET
initialise_wins: add name: TNT#03 ttl = 518076 first IP 193.196.182.173 flags = 46
nmbd_subnetdb:namelist_entry_compare()



log.spoolss:


[2000/08/30 17:06:54, 1] msrpc/msrpcd.c:main(444)
  spoolssd version TNG-alpha started.
  Copyright Andrew Tridgell 1992-1999
  doing parameter log file = /usr/local/samba/var/log/samba/log.%m
  doing parameter max log size = 50
  doing parameter domain group map = /usr/local/samba/private/domaingroup.map
  doing parameter domain logons = Yes
  doing parameter os level = 65
  doing parameter preferred master = True
  doing parameter domain master = True
  doing parameter dns proxy = No
  doing parameter wins support = Yes
  doing parameter printing = lprng
  doing parameter lppause command = lpc hold %p %j
  doing parameter lpresume command = lpc release %p %j
  doing parameter queuepause command = lpc stop %p
  doing parameter queueresume command = lpc start %p
[2000/08/30 17:06:54, 2] param/loadparm.c:do_section(3108)
  Processing section "[homes]"
  doing parameter comment = Home Directories
  doing parameter read only = No
[2000/08/30 17:06:54, 2] param/loadparm.c:do_section(3108)
  Processing section "[Laserdr]"
  doing parameter comment = Drucker im WI-Labor
  doing parameter path = /var/spool/samba
  doing parameter guest ok = Yes
  doing parameter printable = Yes
  doing parameter print command = lpr -P %p
  doing parameter printer name = loclaser
  doing parameter printer driver = HP LaserJet 4000 Series PCL 6
  doing parameter printer driver location = \\TNT\Laser
[2000/08/30 17:06:54, 2] param/loadparm.c:do_section(3108)
  Processing section "[Laserraw]"
  doing parameter comment = Drucker im WI-Labor
  doing parameter path = /var/spool/samba
  doing parameter guest ok = Yes
  doing parameter printable = Yes
  doing parameter print command = lpr -P %p
  doing parameter printer name = locraw
  doing parameter printer driver = HP LaserJet 4000 Series PCL 6
  doing parameter printer driver location = \\TNT\Laser
[2000/08/30 17:06:54, 2] param/loadparm.c:do_section(3108)
  Processing section "[Laser]"
  doing parameter path = /tmp/WI2K_NT/
  doing parameter guest ok = Yes
[2000/08/30 17:06:54, 4] param/loadparm.c:lp_load(3533)
  pm_process() returned Yes
[2000/08/30 17:06:54, 3] param/loadparm.c:lp_add_ipc(2144)
  adding IPC service
lp_servicenumber: couldn't find printers
lp_servicenumber: couldn't find printers 



Could anyone describe the problem and give me answers how to solve it?

The printer does work from LINUX with its REDHAT-Filter. Raw it does not work. It is possible to link the printers from the NT-clients, the driver is installable there. While trying to print just nothing happens...

Any ideas???

Thanx, Sven
___________________________________________________________
http://www.firemail.de - Ihr Briefkasten im Web. Einfach, schnell, sicher.

Lust auf Jetset & weltweite Party?
Können Sie haben - auf der Expo! http://www.expo2000.de 





More information about the samba-ntdom mailing list