con2prt

Inge-Haavard Hunstad inge at cc.uit.no
Mon Mar 29 13:38:58 GMT 1999


Hello

Is there anybody who have got the utility con2prt, that comes with the
zero administration kit, to work with samba? 

This tool connects networkprinters and can set them as default printer.
When I write this commando on a machine with NT Wrks 4.0 SP3:
	con2prt /cd \\trinket\dewshine00
I got this output:
	Failed to connect to Windows NT printer: \\trinket\dewshine00.
	Please check to see that the printer exists.

Trinket is my file and printserver it is running RH5.2 with 2.2.3 kernel
and samba 2.0.3 with security domain. This machine is connected to my
pdc (picknose) whos running RH5.2 with 2.2.1 kernel and cvs HEAD branch
of samba dated 12.03.1999

There's no problem to see the printer share using "net view \\trinket"
and I can print to the printer. If I set up the samba shared printer on
another machine running NT and then use con2prt on that printershare it
works. But this is not a real solution for me because i want the clients
to have direct contact with the server. The thing I wanted to use
con2prt to, is to set the default printer in the login script.

The printshares looks like this:
 
[printers]
   comment = All Printers
   path = /var/tmp
   create mask = 0700
   print ok = Yes
   browseable = No
                        
[dewshine00]
   comment = dewshine00
   path = /var/tmp
   read only = No
   create mask = 0700
   print ok = Yes
   share modes = No
   printer = dewshine00    

I tried both spesifying a printshare and let samba create it
automagicaly.

Thanks in advance for your help.

Keep up the good work!

Inge

Here is a little piece of the logfile for the NT Mashine:

  [1999/03/29 14:29:12, 10]
lib/util_sock.c:read_smb_length_return_keepalive(449)
  got smb length of 118
[1999/03/29 14:29:12, 6] smbd/process.c:process_smb(564)
  got message type 0x0 of len 0x76
[1999/03/29 14:29:12, 3] smbd/process.c:process_smb(565)
  Transaction 29 of length 122
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(459)
  size=118
  smb_com=0x25
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=3
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(465)
  smb_tid=1
  smb_pid=40992
  smb_uid=100
  smb_mid=1728
  smt_wct=14
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[0]=38 (0x26)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[1]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[2]=6 (0x6)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[3]=1024 (0x400)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[4]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[5]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[6]=5000 (0x1388)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[7]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[8]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[9]=38 (0x26)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[10]=80 (0x50)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[11]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[12]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[13]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(475)
  smb_bcc=55
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2832)
  [000] 5C 50 49 50 45 5C 4C 41  4E 4D 41 4E 00 00 0B 33  \PIPE\LA
NMAN...3
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [010] 45 46 00 7A 57 72 4C 68  00 7A 57 57 57 57 7A 7A  EF.zWrLh
.zWWWWzz
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [020] 7A 7A 57 57 7A 7A 6C 00  64 65 77 73 68 69 6E 65  zzWWzzl.
dewshine
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [030] 30 30 00 03 00 00 04                              00..... 
[1999/03/29 14:29:12, 3] smbd/process.c:switch_message(402)
  switch message SMBtrans (pid 28803)
[1999/03/29 14:29:12, 5] smbd/uid.c:become_user(262)
  become_user uid=(0,1011) gid=(0,1011)
[1999/03/29 14:29:12, 3] lib/doscalls.c:dos_ChDir(327)
  dos_ChDir to /tmp
[1999/03/29 14:29:12, 3] smbd/ipc.c:reply_trans(3625)
  trans <\PIPE\LANMAN> data=0 params=38 setup=0
[1999/03/29 14:29:12, 5] smbd/ipc.c:reply_trans(3637)
  calling named_pipe
[1999/03/29 14:29:12, 3] smbd/ipc.c:named_pipe(3480)
  named pipe command on <LANMAN> name
[1999/03/29 14:29:12, 3] smbd/ipc.c:api_reply(3425)
  Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=38,mdrcnt=1024,mprcnt=6)
[1999/03/29 14:29:12, 3] smbd/ipc.c:api_reply(3430)
  Doing DosPrintQGetInfo
[1999/03/29 14:29:12, 3] smbd/ipc.c:api_DosPrintQGetInfo(818)
  PrintQueue uLevel=3 name=dewshine00
[1999/03/29 14:29:12, 3] printing/printing.c:get_printqueue(1004)
  Using cached lpq output
[1999/03/29 14:29:12, 6] printing/printing.c:get_printqueue(1027)
  QUEUE2: No entries
  
[1999/03/29 14:29:12, 6] printing/printing.c:get_printqueue(1027)
  QUEUE2: 
  
[1999/03/29 14:29:12, 4] smbd/ipc.c:api_DosPrintQGetInfo(891)
  printqgetinfo: errorcode 0
[1999/03/29 14:29:12, 5] smbd/ipc.c:copy_trans_params_and_data(150)
  copy_trans_params_and_data: params[0..6] data[0..133]
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(459)
  size=197
  smb_com=0x25
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=1
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(465)
  smb_tid=1
  smb_pid=40992
  smb_uid=100
  smb_mid=1728
  smt_wct=10
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[0]=6 (0x6)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[1]=133 (0x85)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[2]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[3]=6 (0x6)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[4]=56 (0x38)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[5]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[6]=133 (0x85)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[7]=64 (0x40)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[8]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[9]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(475)
  smb_bcc=142
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2832)
  [000] 00 00 00 00 00 85 00 00  00 2C 00 00 00 05 00 00  ........
.,......
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [010] 00 00 00 05 00 37 00 00  00 38 00 00 00 41 00 00  .....7..
.8...A..
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [020] 00 42 00 00 00 00 00 00  00 4D 00 00 00 58 00 00  .B......
.M...X..
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [030] 00 5D 00 00 00 64 65 77  73 68 69 6E 65 30 30 00  .]...dew
shine00.
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [040] 00 57 69 6E 50 72 69 6E  74 00 00 6E 6F 20 65 6E  .WinPrin t..no
en
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [050] 74 72 69 65 73 00 64 65  77 73 68 69 6E 65 30 30  tries.de
wshine00
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [060] 00 4E 55 4C 4C 00 28 00  00 00 E8 03 00 00 4E 55  .NULL.(.
......NU
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [070] 4C 4C 00 00 00 00 00 00  00 00 00 00 00 00 00 00  LL......
........
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [080] 00 00 00 00 00 00 00 00  00 00 00 00 00 00        ........
......
[1999/03/29 14:29:12, 6] lib/util_sock.c:write_socket(185)
  write_socket(6,201)
[1999/03/29 14:29:12, 6] lib/util_sock.c:write_socket(188)
  write_socket(6,201) wrote 201
[1999/03/29 14:29:12, 10]
lib/util_sock.c:read_smb_length_return_keepalive(449)
  got smb length of 118
[1999/03/29 14:29:12, 6] smbd/process.c:process_smb(564)
  got message type 0x0 of len 0x76
[1999/03/29 14:29:12, 3] smbd/process.c:process_smb(565)
  Transaction 30 of length 122
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(459)
  size=118
  smb_com=0x25
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=3
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(465)
  smb_tid=1
  smb_pid=40992
  smb_uid=100
  smb_mid=1792
  smt_wct=14
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[0]=38 (0x26)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[1]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[2]=6 (0x6)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[3]=1024 (0x400)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[4]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[5]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[6]=5000 (0x1388)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[7]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[8]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[9]=38 (0x26)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[10]=80 (0x50)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[11]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[12]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[13]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(475)
  smb_bcc=55
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2832)
  [000] 5C 50 49 50 45 5C 4C 41  4E 4D 41 4E 00 00 00 00  \PIPE\LA
NMAN....
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [010] 00 46 00 7A 57 72 4C 68  00 7A 57 57 57 57 7A 7A  .F.zWrLh
.zWWWWzz
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [020] 7A 7A 57 57 7A 7A 6C 00  64 65 77 73 68 69 6E 65  zzWWzzl.
dewshine
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [030] 30 30 00 03 00 00 04                              00..... 
[1999/03/29 14:29:12, 3] smbd/process.c:switch_message(402)
  switch message SMBtrans (pid 28803)
[1999/03/29 14:29:12, 4] smbd/uid.c:become_user(209)
  Skipping become_user - already user
[1999/03/29 14:29:12, 3] smbd/ipc.c:reply_trans(3625)
  trans <\PIPE\LANMAN> data=0 params=38 setup=0
[1999/03/29 14:29:12, 5] smbd/ipc.c:reply_trans(3637)
  calling named_pipe
[1999/03/29 14:29:12, 3] smbd/ipc.c:named_pipe(3480)
  named pipe command on <LANMAN> name
[1999/03/29 14:29:12, 3] smbd/ipc.c:api_reply(3425)
  Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=38,mdrcnt=1024,mprcnt=6)
[1999/03/29 14:29:12, 3] smbd/ipc.c:api_reply(3430)
  Doing DosPrintQGetInfo
[1999/03/29 14:29:12, 3] smbd/ipc.c:api_DosPrintQGetInfo(818)
  PrintQueue uLevel=3 name=dewshine00
[1999/03/29 14:29:12, 3] printing/printing.c:get_printqueue(1004)
  Using cached lpq output
[1999/03/29 14:29:12, 6] printing/printing.c:get_printqueue(1027)
  QUEUE2: No entries
  
[1999/03/29 14:29:12, 6] printing/printing.c:get_printqueue(1027)
  QUEUE2: 
  
[1999/03/29 14:29:12, 4] smbd/ipc.c:api_DosPrintQGetInfo(891)
  printqgetinfo: errorcode 0
[1999/03/29 14:29:12, 5] smbd/ipc.c:copy_trans_params_and_data(150)
  copy_trans_params_and_data: params[0..6] data[0..133]
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(459)
  size=197
  smb_com=0x25
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=1
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(465)
  smb_tid=1
  smb_pid=40992
  smb_uid=100
  smb_mid=1792
  smt_wct=10
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[0]=6 (0x6)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[1]=133 (0x85)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[2]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[3]=6 (0x6)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[4]=56 (0x38)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[5]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[6]=133 (0x85)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[7]=64 (0x40)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[8]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(470)
  smb_vwv[9]=0 (0x0)
[1999/03/29 14:29:12, 5] lib/util.c:show_msg(475)
  smb_bcc=142
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2832)
  [000] 00 00 00 00 00 85 00 00  00 2C 00 00 00 05 00 00  ........
.,......
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [010] 00 00 00 05 00 37 00 00  00 38 00 00 00 41 00 00  .....7..
.8...A..
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [020] 00 42 00 00 00 00 00 00  00 4D 00 00 00 58 00 00  .B......
.M...X..
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [030] 00 5D 00 00 00 64 65 77  73 68 69 6E 65 30 30 00  .]...dew
shine00.
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [040] 00 57 69 6E 50 72 69 6E  74 00 00 6E 6F 20 65 6E  .WinPrin t..no
en
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [050] 74 72 69 65 73 00 64 65  77 73 68 69 6E 65 30 30  tries.de
wshine00
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [060] 00 4E 55 4C 4C 00 28 00  00 00 E8 03 00 00 4E 55  .NULL.(.
......NU
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [070] 4C 4C 00 00 00 00 00 00  00 00 00 00 00 00 00 00  LL......
........
[1999/03/29 14:29:12, 10] lib/util.c:dump_data(2840)
  [080] 00 00 00 00 00 00 00 00  00 00 00 00 00 00        ........
......
[1999/03/29 14:29:12, 6] lib/util_sock.c:write_socket(185)
  write_socket(6,201)
[1999/03/29 14:29:12, 6] lib/util_sock.c:write_socket(188)
  write_socket(6,201) wrote 201


More information about the samba-ntdom mailing list