Werheid Bernhard
2003-Mar-07 13:25 UTC
[Samba] rpcclient setdriver fails: WERR_INVALID_PRINTER_NAME
Hi all, I have a similar problem as Patrik yesterday. So I can copy some lines, but not all. We have an SuSE 8.1 machine who acts as an printserver. I'm sharing printers via Samba and using CUPS. Samba is 2.2.7a and CUPS 1.1.8. The Microsoft clients (Win9x, Win NT, Win 2k) is downloading the driver from the server. I had no problem to install and upload up to 2 printers but now I am not able to set the driver. I can install more printers, but when cupsaddsmb is running rpcclient -N -U 'root%secret' -c 'setdriver zae zae' I get the "result was NT_STATUS_UNSUCCESSFUL" messages. This is cut out of the debug-log of rcpclient. ============================================================= 000010 smb_io_rpc_hdr_resp rpc_hdr_resp [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint32(588) 0010 alloc_hint: 00000018 [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint16(559) 0014 context_id: 0000 [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint8(530) 0016 cancel_ct : 00 [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint8(530) 0017 reserved : 00 [2003/03/07 12:23:09, 5] rpc_client/cli_pipe.c:rpc_api_pipe(406) rpc_api_pipe: len left: 0 smbtrans read: 48 [2003/03/07 12:23:09, 6] rpc_client/cli_pipe.c:rpc_api_pipe(444) rpc_api_pipe: fragment first and last both set [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_debug(60) 000018 spoolss_io_r_open_printer_ex [2003/03/07 12:23:09, 6] rpc_parse/parse_prs.c:prs_debug(60) 000018 smb_io_pol_hnd printer handle [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint32(588) 0018 data1: 00000000 [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint32(588) 001c data2: 00000002 [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint16(559) 0020 data3: 0000 [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint16(559) 0022 data4: 0000 [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_uint8s(675) 0024 data5: 1d 81 68 3e c5 0c 00 00 [2003/03/07 12:23:09, 5] rpc_parse/parse_prs.c:prs_werror(648) 002c status code: WERR_INVALID_PRINTER_NAME [2003/03/07 12:23:09, 6] lib/util_sock.c:write_socket(518) write_socket(4,45) [2003/03/07 12:23:09, 6] lib/util_sock.c:write_socket(521) write_socket(4,45) wrote 45 [2003/03/07 12:23:09, 10] lib/util_sock.c:read_smb_length_return_keepalive(559) got smb length of 35 [2003/03/07 12:23:09, 5] lib/util.c:show_msg(275) size=35 smb_com=0x4 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=136 smb_flg2=1 [2003/03/07 12:23:09, 5] lib/util.c:show_msg(281) smb_tid=1 smb_pid=3268 smb_uid=100 smb_mid=1 smt_wct=0 [2003/03/07 12:23:09, 5] lib/util.c:show_msg(291) smb_bcc=0 ============================================================= I hope, someone knows more about that. Mit freundlichen Gr??en Kind Regards -------------------------------- Bernhard Werheid Zanders Feinpapiere AG DV-Rechenzentrum An der Gohrsmuehle D-51465 Bergisch Gladbach Phone: +49 2202 15-4731 (switch board: -0) Mobile: +49 173 5494221 Fax: +49 2202 15-2873 <mailto:bernhard.werheid@m-real.com>
Kurt Pfeifle
2003-Mar-08 11:05 UTC
[Samba] rpcclient setdriver fails: WERR_INVALID_PRINTER_NAME
Werheid Bernhard wrote on Samba-Digest:> Date: Fri, 7 Mar 2003 15:25:13 +0200 > From: Werheid Bernhard <Bernhard.Werheid@M-Real.com> > To: "'samba@lists.samba.org.'" <samba@lists.samba.org> > Subject: [Samba] rpcclient setdriver fails: WERR_INVALID_PRINTER_NAME > Message: 2 > > > Hi all, > > I have a similar problem as Patrik yesterday. So I can copy some lines, > but > not all. > > We have an SuSE 8.1 machine who acts as an printserver. > I'm sharing printers via Samba and using CUPS. > Samba is 2.2.7a and CUPS 1.1.8. > > The Microsoft clients (Win9x, Win NT, Win 2k) is downloading the > driver from the server. > > I had no problem to install and upload up to 2 printers but now I am > not able to set the driver. > > I can install more printers, but when cupsaddsmb is running > rpcclient -N -U 'root%secret' -c 'setdriver zae zae' > I get the "result was NT_STATUS_UNSUCCESSFUL" messages.What is the result of the "rpcclient -U root localhost -c enumprinters" command? Is your printer "zae" appearing in the list of known printers? I suspect the "NT_STATUS_UNSUCCESSFUL" comes from the fact that Samba does not yet see your "zae" printer, as it might be freshly installed. In my opinion it is a Samba-2.2.x bug, that you don't see newly installed CUPS printers within Samba (or its Win clients' network neighbourhood), even if they are appearing in "/etc/printcap" immediately (or to the native CUPS clients), unless you SIGHUP or restart smbd. If my assumption is correct, your "rpcclient -N -U 'root%secret' -c 'setdriver zae zae'" command at the end of "cupsaddsmb" should work after re-starting smbd. Please report back. Cheers, Kurt