Mikael M. Hansen
2006-Jan-18 13:02 UTC
[Samba] Problem in rpc_api_pipe related to the \spoolss pipe
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 i I have a problem with a samba-3.0.21a (as a PDC), when I use rpcclient to set the driver for a printer. I receive the following error (log level 12 for relevant parts rpc*, printerdrivers,tdb attached): rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x76dereturned critical error. Error was Call returned zero bytes (EOF) prs_mem_get: reading data of size 4 would overrun buffer by 4 bytes. SetPrinter call failed! rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x76dereturned critical error. Error was Call returned zero bytes (EOF) prs_mem_get: reading data of size 4 would overrun buffer by 4 bytes. result was WERR_GENERAL_FAILURE cli_rpc_pipe_close: cli_close failed on pipe \spoolss, fnum 0x76de to machine pdc. Error was Call returned zero bytes The command I use is: rpcclient -Umhansen -c 'setdriver e21a "HP LaserJet 5000"' localhost Enumprinters and enumdrivers works correctly (adddriver also worked perfectly): rpcclient -Umhansen -c 'enumprinters 2' localhost servername:[\\pdc] printername:[\\pdc\e21a] sharename:[e21a] portname:[Samba Printer Port] drivername:[e21a] comment:[HP5000Duplex] location:[] sepfile:[] printprocessor:[winprint] datatype:[RAW] parameters:[] attributes:[0x1048] priority:[0x1] defaultpriority:[0x1] starttime:[0x0] untiltime:[0x0] status:[0x0] cjobs:[0x0] averageppm:[0x0] rpcclient -Umhansen -c 'enumdrivers 3' localhost [Windows NT x86] Printer Driver Info 3: Version: [2] Driver Name: [e21a] Architecture: [Windows NT x86] Driver Path: [\\\\LOCALHOST\print$\W32X86\2\ADOBEPS5.DLL] Datafile: [\\\\LOCALHOST\print$\W32X86\2\e21a.PPD] Configfile: [\\\\LOCALHOST\print$\W32X86\2\ADOBEPSU.DLL] Helpfile: [\\\\LOCALHOST\print$\W32X86\2\ADOBEPSU.HLP] Monitorname: [] Defaultdatatype: [RAW] Printer Driver Info 3: Version: [3] Driver Name: [HP LaserJet 5000] Architecture: [Windows NT x86] Driver Path: [\\\\LOCALHOST\print$\W32X86\3\PSCRIPT5.DLL] Datafile: [\\\\LOCALHOST\print$\W32X86\3\HP_LaserJet_5000_Series.ppd] Configfile: [\\\\LOCALHOST\print$\W32X86\3\PS5UI.DLL] Helpfile: [\\\\LOCALHOST\print$\W32X86\3\PSCRIPT.HLP] Monitorname: [] Defaultdatatype: [RAW] Any suggestions on whats wrong? I wonder if something was changed in the printing tdb from version 3.0.20rc2 that might cause this? I copied the old ones to the new installation. - -- MVH / Best regards Mikael M. Hansen - -- MVH / Best regards Mikael M. Hansen IT-administrator Computer Science Dept. Email: mhansen@cs.aau.dk Aalborg University Phone: +45 9635 8905 Fredrik Bajers Vej 7E Room: E2-121 DK-9220 Aalborg, Denmark -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDzjxV1ZklRSLjnxgRAndHAKCI2hSFtow/KicC11P9bPgup4EYgACfarPu kibgjW7SZf5Y2pdVhAO8/k8=E0ke -----END PGP SIGNATURE----- -------------- next part -------------- Opening cache file at /q/disk_0/testcups/samba-3.0.21a/var/locks/gencache.tdb Returning valid cache entry: key = NBT/PDC#20, value = 130.225.194.5:0, timeout = Wed Jan 18 13:08:59 2006 Bind RPC Pipe[7304]: \lsarpc auth_type 0, auth_level 0 Bind Abstract Syntax: Bind Transfer Syntax: 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 0b 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0048 000a auth_len : 0000 000c call_id : 00000001 000010 smb_io_rpc_hdr_rb 000010 smb_io_rpc_hdr_bba 0010 max_tsize: 10b8 0012 max_rsize: 10b8 0014 assoc_gid: 00000000 0018 num_contexts: 01 001c context_id : 0000 001e num_transfer_syntaxes: 01 00001f smb_io_rpc_iface 000020 smb_io_uuid uuid 0020 data : 12345778 0024 data : 1234 0026 data : abcd 0028 data : ef 00 002a data : 01 23 45 67 89 ab 0030 version: 00000000 000034 smb_io_rpc_iface 000034 smb_io_uuid uuid 0034 data : 8a885d04 0038 data : 1ceb 003a data : 11c9 003c data : 9f e8 003e data : 08 00 2b 10 48 60 0044 version: 00000002 rpc_api_pipe: Remote machine pdc pipe \lsarpc fnum 0x7304 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 0c 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0044 000a auth_len : 0000 000c call_id : 00000001 rpc_api_pipe: got PDU len of 68 at offset 0 rpc_api_pipe: Remote machine pdc pipe \lsarpc fnum 0x7304 returned 68 bytes. rpc_pipe_bind: Remote machine pdc pipe \lsarpc fnum 0x7304 bind request returned ok. 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 0c 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0044 000a auth_len : 0000 000c call_id : 00000001 000010 smb_io_rpc_hdr_ba 000010 smb_io_rpc_hdr_bba 0010 max_tsize: 10b8 0012 max_rsize: 10b8 0014 assoc_gid: 000053f0 000018 smb_io_rpc_addr_str 0018 len: 000c 001a str: 000026 smb_io_rpc_results 0028 num_results: 01 002c result : 0000 002e reason : 0000 000030 smb_io_rpc_iface 000030 smb_io_uuid uuid 0030 data : 8a885d04 0034 data : 1ceb 0036 data : 11c9 0038 data : 9f e8 003a data : 08 00 2b 10 48 60 0040 version: 00000002 check_bind_response: accepted! cli_rpc_pipe_open_noauth: opened pipe \lsarpc to machine pdc and bound anonymously. init_lsa_sec_qos init_open_pol: attr:0 da:33554432 init_lsa_obj_attr 000000 lsa_io_q_open_pol 0000 ptr : 00000001 0004 system_name: 005c 000008 lsa_io_obj_attr 0008 len : 00000018 000c ptr_root_dir: 00000000 0010 ptr_obj_name: 00000000 0014 attributes : 00000000 0018 ptr_sec_desc: 00000000 001c ptr_sec_qos : 00000001 000020 lsa_io_obj_qos sec_qos 0020 len : 0000000c 0024 sec_imp_level : 0002 0026 sec_ctxt_mode : 01 0027 effective_only: 00 lsa_io_sec_qos: length c does not match size 8 0028 des_access: 02000000 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0044 000a auth_len : 0000 000c call_id : 00000002 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 0000002c 0014 context_id: 0000 0016 opnum : 0006 rpc_api_pipe: Remote machine pdc pipe \lsarpc fnum 0x7304 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0030 000a auth_len : 0000 000c call_id : 00000002 000010 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 00000018 0014 context_id: 0000 0016 cancel_ct : 00 0017 reserved : 00 cli_pipe_validate_current_pdu: got pdu len 48, data_len 24, ss_len 0 rpc_api_pipe: got PDU len of 48 at offset 0 rpc_api_pipe: Remote machine pdc pipe \lsarpc fnum 0x7304 returned 48 bytes. 000000 lsa_io_r_open_pol 000000 smb_io_pol_hnd 0000 data1: 00000000 0004 data2: 00000001 0008 data3: 0000 000a data4: 0000 000c data5: 88 2e ce 43 8c 65 00 00 0014 status: NT_STATUS_OK init_q_query 000000 lsa_io_q_query 000000 smb_io_pol_hnd 0000 data1: 00000000 0004 data2: 00000001 0008 data3: 0000 000a data4: 0000 000c data5: 88 2e ce 43 8c 65 00 00 0014 info_class: 0005 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 002e 000a auth_len : 0000 000c call_id : 00000003 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 00000016 0014 context_id: 0000 0016 opnum : 0007 rpc_api_pipe: Remote machine pdc pipe \lsarpc fnum 0x7304 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 006c 000a auth_len : 0000 000c call_id : 00000003 000010 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 00000054 0014 context_id: 0000 0016 cancel_ct : 00 0017 reserved : 00 cli_pipe_validate_current_pdu: got pdu len 108, data_len 84, ss_len 0 rpc_api_pipe: got PDU len of 108 at offset 0 rpc_api_pipe: Remote machine pdc pipe \lsarpc fnum 0x7304 returned 168 bytes. 000000 lsa_io_r_query 0000 undoc_buffer: 22000000 0004 info_class: 0005 000008 lsa_io_dom_query 0008 uni_dom_max_len: 0012 000a uni_dom_str_len: 0014 000c buffer_dom_name: 00000001 0010 buffer_dom_sid : 00000001 000014 smb_io_unistr2 unistr2 0014 uni_max_len: 0000000a 0018 offset : 00000000 001c uni_str_len: 00000009 0020 buffer : 000034 smb_io_dom_sid2 0034 num_auths: 00000004 000038 smb_io_dom_sid sid 0038 sid_rev_num: 01 0039 num_auths : 04 003a id_auth[0] : 00 003b id_auth[1] : 00 003c id_auth[2] : 00 003d id_auth[3] : 00 003e id_auth[4] : 00 003f id_auth[5] : 05 0040 sub_auths : 00000015 7ee9ea7b c694a3ff f1268109 0050 status: NT_STATUS_OK init_lsa_q_close 000000 lsa_io_q_close 000000 smb_io_pol_hnd 0000 data1: 00000000 0004 data2: 00000001 0008 data3: 0000 000a data4: 0000 000c data5: 88 2e ce 43 8c 65 00 00 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 002c 000a auth_len : 0000 000c call_id : 00000004 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 00000014 0014 context_id: 0000 0016 opnum : 0000 rpc_api_pipe: Remote machine pdc pipe \lsarpc fnum 0x7304 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0030 000a auth_len : 0000 000c call_id : 00000004 000010 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 00000018 0014 context_id: 0000 0016 cancel_ct : 00 0017 reserved : 00 cli_pipe_validate_current_pdu: got pdu len 48, data_len 24, ss_len 0 rpc_api_pipe: got PDU len of 48 at offset 0 rpc_api_pipe: Remote machine pdc pipe \lsarpc fnum 0x7304 returned 48 bytes. 000000 lsa_io_r_close 000000 smb_io_pol_hnd 0000 data1: 00000000 0004 data2: 00000000 0008 data3: 0000 000a data4: 0000 000c data5: 00 00 00 00 00 00 00 00 0014 status: NT_STATUS_OK Bind RPC Pipe[7305]: \spoolss auth_type 0, auth_level 0 Bind Abstract Syntax: Bind Transfer Syntax: 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 0b 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0048 000a auth_len : 0000 000c call_id : 00000005 000010 smb_io_rpc_hdr_rb 000010 smb_io_rpc_hdr_bba 0010 max_tsize: 10b8 0012 max_rsize: 10b8 0014 assoc_gid: 00000000 0018 num_contexts: 01 001c context_id : 0000 001e num_transfer_syntaxes: 01 00001f smb_io_rpc_iface 000020 smb_io_uuid uuid 0020 data : 12345678 0024 data : 1234 0026 data : abcd 0028 data : ef 00 002a data : 01 23 45 67 89 ab 0030 version: 00000001 000034 smb_io_rpc_iface 000034 smb_io_uuid uuid 0034 data : 8a885d04 0038 data : 1ceb 003a data : 11c9 003c data : 9f e8 003e data : 08 00 2b 10 48 60 0044 version: 00000002 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 0c 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0044 000a auth_len : 0000 000c call_id : 00000005 rpc_api_pipe: got PDU len of 68 at offset 0 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 returned 68 bytes. rpc_pipe_bind: Remote machine pdc pipe \spoolss fnum 0x7305 bind request returned ok. 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 0c 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0044 000a auth_len : 0000 000c call_id : 00000005 000010 smb_io_rpc_hdr_ba 000010 smb_io_rpc_hdr_bba 0010 max_tsize: 10b8 0012 max_rsize: 10b8 0014 assoc_gid: 000053f0 000018 smb_io_rpc_addr_str 0018 len: 000e 001a str: 000028 smb_io_rpc_results 0028 num_results: 01 002c result : 0000 002e reason : 0000 000030 smb_io_rpc_iface 000030 smb_io_uuid uuid 0030 data : 8a885d04 0034 data : 1ceb 0036 data : 11c9 0038 data : 9f e8 003a data : 08 00 2b 10 48 60 0040 version: 00000002 check_bind_response: accepted! cli_rpc_pipe_open_noauth: opened pipe \spoolss to machine pdc and bound anonymously. make_spoolss_q_open_printer_ex 000000 spoolss_io_q_open_printer_ex 0000 ptr: f000baaa 000004 smb_io_unistr2 printername 0004 uni_max_len: 0000000b 0008 offset : 00000000 000c uni_str_len: 0000000b 0010 buffer : 000028 spoolss_io_printer_default 0028 datatype_ptr: 00000000 00002c smb_io_unistr2 - NULL datatype 00002c spoolss_io_devmode_cont 002c size: 00000000 0030 devmode_ptr: 00000000 0034 access_required: 000f000c 0038 user_switch: 00000001 00003c spool_io_user_level 003c level: 00000001 0040 ptr: f000baaa 000044 0044 size: 0000000f 0048 ptr: f000baaa 004c ptr: f000baaa 0050 build: 00000565 0054 major: 00000002 0058 minor: 00000000 005c processor: 00000000 000060 smb_io_unistr2 0060 uni_max_len: 00000006 0064 offset : 00000000 0068 uni_str_len: 00000006 006c buffer : 000078 smb_io_unistr2 0078 uni_max_len: 00000001 007c offset : 00000000 0080 uni_str_len: 00000001 0084 buffer : 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 009e 000a auth_len : 0000 000c call_id : 00000006 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 00000086 0014 context_id: 0000 0016 opnum : 0045 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0030 000a auth_len : 0000 000c call_id : 00000006 000010 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 00000018 0014 context_id: 0000 0016 cancel_ct : 00 0017 reserved : 00 cli_pipe_validate_current_pdu: got pdu len 48, data_len 24, ss_len 0 rpc_api_pipe: got PDU len of 48 at offset 0 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 returned 48 bytes. 000000 spoolss_io_r_open_printer_ex 000000 smb_io_pol_hnd printer handle 0000 data1: 00000000 0004 data2: 00000002 0008 data3: 0000 000a data4: 0000 000c data5: 88 2e ce 43 8c 65 00 00 0014 status code: WERR_OK 000000 spoolss_io_q_getprinter 000000 smb_io_pol_hnd printer handle 0000 data1: 00000000 0004 data2: 00000002 0008 data3: 0000 000a data4: 0000 000c data5: 88 2e ce 43 8c 65 00 00 0014 level: 00000002 0018 ptr: f000baaa 00001c prs_rpcbuffer 001c size: 00000000 0020 offered: 00000000 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 003c 000a auth_len : 0000 000c call_id : 00000007 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 00000024 0014 context_id: 0000 0016 opnum : 0008 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 0028 000a auth_len : 0000 000c call_id : 00000007 000010 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 00000010 0014 context_id: 0000 0016 cancel_ct : 00 0017 reserved : 00 cli_pipe_validate_current_pdu: got pdu len 40, data_len 16, ss_len 0 rpc_api_pipe: got PDU len of 40 at offset 0 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 returned 32 bytes. 000000 spoolss_io_r_getprinter 0000 ptr: f000baaa 000004 prs_rpcbuffer 0004 size: 00000000 0008 needed: 000001b4 000c status: WERR_INSUFFICIENT_BUFFER 000000 spoolss_io_q_getprinter 000000 smb_io_pol_hnd printer handle 0000 data1: 00000000 0004 data2: 00000002 0008 data3: 0000 000a data4: 0000 000c data5: 88 2e ce 43 8c 65 00 00 0014 level: 00000002 0018 ptr: f000baaa 00001c prs_rpcbuffer 001c size: 000001b4 01d4 offered: 000001b4 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 01f0 000a auth_len : 0000 000c call_id : 00000008 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 000001d8 0014 context_id: 0000 0016 opnum : 0008 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 000000 smb_io_rpc_hdr rpc_hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 02 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 01dc 000a auth_len : 0000 000c call_id : 00000008 000010 smb_io_rpc_hdr_resp rpc_hdr_resp 0010 alloc_hint: 000001c4 0014 context_id: 0000 0016 cancel_ct : 00 0017 reserved : 00 cli_pipe_validate_current_pdu: got pdu len 476, data_len 452, ss_len 0 rpc_api_pipe: got PDU len of 476 at offset 0 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 returned 904 bytes. 000000 spoolss_io_r_getprinter 0000 ptr: f000baaa 000004 prs_rpcbuffer 0004 size: 000001b4 01bc needed: 000001b4 01c0 status: WERR_OK 000000 smb_io_printer_info_2 0000 offset: 000001a8 0001a8 smb_io_unistr servername 01a8 unistr: 0004 offset: 00000192 000192 smb_io_unistr printername 0192 unistr: 0008 offset: 00000188 000188 smb_io_unistr sharename 0188 unistr: 000c offset: 00000162 000162 smb_io_unistr portname 0162 unistr: 0010 offset: 00000158 000158 smb_io_unistr drivername 0158 unistr: 0014 offset: 0000013e 00013e smb_io_unistr comment 013e unistr: 0018 offset: 0000013c 00013c smb_io_unistr location 013c unistr: 001c devmode: 00000000 0020 offset: 0000013a 00013a smb_io_unistr sepfile 013a unistr: 0024 offset: 00000128 000128 smb_io_unistr printprocessor 0128 unistr: 0028 offset: 00000120 000120 smb_io_unistr datatype 0120 unistr: 002c offset: 0000011e 00011e smb_io_unistr parameters 011e unistr: 0030 sec_desc: 00000056 00001c smb_io_reldevmode devmode 001c offset: 00000000 0034 attributes: 00001048 0038 priority: 00000001 003c defpriority: 00000001 0040 starttime: 00000000 0044 untiltime: 00000000 0048 status: 00000000 004c jobs: 00000000 0050 averageppm: 00000000 000000 spoolss_io_q_setprinter 000000 smb_io_pol_hnd printer handle 0000 data1: 00000000 0004 data2: 00000002 0008 data3: 0000 000a data4: 0000 000c data5: 88 2e ce 43 8c 65 00 00 0014 level: 00000002 000018 spool_io_printer_info_level 0018 level: 00000002 001c info_ptr: 00000001 000020 spool_io_printer_info_level_2 0020 servername_ptr: 00000001 0024 printername_ptr: 00000001 0028 sharename_ptr: 00000001 002c portname_ptr: 00000001 0030 drivername_ptr: 00000001 0034 comment_ptr: 00000001 0038 location_ptr: 00000001 003c devmode_ptr: 00000000 0040 sepfile_ptr: 00000001 0044 printprocessor_ptr: 00000001 0048 datatype_ptr: 00000001 004c parameters_ptr: 00000001 0050 secdesc_ptr: 00000000 0054 attributes: 00001048 0058 priority: 00000001 005c default_priority: 00000001 0060 starttime: 00000000 0064 untiltime: 00000000 0068 status: 00000000 006c cjobs: 00000000 0070 averageppm: 00000000 000074 smb_io_unistr2 servername 0074 uni_max_len: 00000006 0078 offset : 00000000 007c uni_str_len: 00000006 0080 buffer : 00008c smb_io_unistr2 printername 008c uni_max_len: 0000000b 0090 offset : 00000000 0094 uni_str_len: 0000000b 0098 buffer : 0000ae smb_io_unistr2 sharename 00b0 uni_max_len: 00000005 00b4 offset : 00000000 00b8 uni_str_len: 00000005 00bc buffer : 0000c6 smb_io_unistr2 portname 00c8 uni_max_len: 00000013 00cc offset : 00000000 00d0 uni_str_len: 00000013 00d4 buffer : 0000fa smb_io_unistr2 drivername 00fc uni_max_len: 00000011 0100 offset : 00000000 0104 uni_str_len: 00000011 0108 buffer : 00012a smb_io_unistr2 comment 012c uni_max_len: 0000000d 0130 offset : 00000000 0134 uni_str_len: 0000000d 0138 buffer : 000152 smb_io_unistr2 location 0154 uni_max_len: 00000001 0158 offset : 00000000 015c uni_str_len: 00000001 0160 buffer : 000162 smb_io_unistr2 sepfile 0164 uni_max_len: 00000001 0168 offset : 00000000 016c uni_str_len: 00000001 0170 buffer : 000172 smb_io_unistr2 printprocessor 0174 uni_max_len: 00000009 0178 offset : 00000000 017c uni_str_len: 00000009 0180 buffer : 000192 smb_io_unistr2 datatype 0194 uni_max_len: 00000004 0198 offset : 00000000 019c uni_str_len: 00000004 01a0 buffer : 0001a8 smb_io_unistr2 parameters 01a8 uni_max_len: 00000001 01ac offset : 00000000 01b0 uni_str_len: 00000001 01b4 buffer : 0001b6 spoolss_io_devmode_cont 01b8 size: 00000000 01bc devmode_ptr: 00000000 0001c0 sec_io_desc_buf 01c0 size: 00000000 01c4 ptr: 00000000 01c8 command: 00000000 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 01e4 000a auth_len : 0000 000c call_id : 00000009 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 000001cc 0014 context_id: 0000 0016 opnum : 0007 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305returned critical error. Error was Call returned zero bytes (EOF) 000000 spoolss_io_r_setprinter prs_mem_get: reading data of size 4 would overrun buffer by 4 bytes. SetPrinter call failed! make_spoolss_q_closeprinter 000000 spoolss_io_q_closeprinter 000000 smb_io_pol_hnd printer handle 0000 data1: 00000000 0004 data2: 00000002 0008 data3: 0000 000a data4: 0000 000c data5: 88 2e ce 43 8c 65 00 00 000000 smb_io_rpc_hdr hdr 0000 major : 05 0001 minor : 00 0002 pkt_type : 00 0003 flags : 03 0004 pack_type0: 10 0005 pack_type1: 00 0006 pack_type2: 00 0007 pack_type3: 00 0008 frag_len : 002c 000a auth_len : 0000 000c call_id : 0000000a 000010 smb_io_rpc_hdr_req hdr_req 0010 alloc_hint: 00000014 0014 context_id: 0000 0016 opnum : 001d rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305 rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x7305returned critical error. Error was Call returned zero bytes (EOF) 000000 spoolss_io_r_closeprinter 000000 smb_io_pol_hnd printer handle prs_mem_get: reading data of size 4 would overrun buffer by 4 bytes. result was WERR_GENERAL_FAILURE cli_rpc_pipe_close: cli_close failed on pipe \spoolss, fnum 0x7305 to machine pdc. Error was Call returned zero bytes (EOF)
Gerald (Jerry) Carter
2006-Jan-18 15:46 UTC
[Samba] Problem in rpc_api_pipe related to the \spoolss pipe
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mikael M. Hansen wrote:> i > > I have a problem with a samba-3.0.21a (as a PDC), when I use rpcclient > to set the driver for a printer. I receive the following error (log > level 12 for relevant parts rpc*, printerdrivers,tdb attached): > > rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x76dereturned > critical error. Error was Call returned zero bytes (EOF) > prs_mem_get: reading data of size 4 would overrun buffer by 4 bytes. > SetPrinter call failed! > rpc_api_pipe: Remote machine pdc pipe \spoolss fnum 0x76dereturned > critical error. Error was Call returned zero bytes (EOF) > prs_mem_get: reading data of size 4 would overrun buffer by 4 bytes. > result was WERR_GENERAL_FAILURE > cli_rpc_pipe_close: cli_close failed on pipe \spoolss, fnum 0x76de to > machine pdc. Error was Call returned zero bytes > > The command I use is: > > rpcclient -Umhansen -c 'setdriver e21a "HP LaserJet 5000"' localhostThere was a segv in the server printing code what changing drivers. This has been fixed for the upcoming 3.0.21b. The patch is attached to this bug report (https://bugzilla.samba.org/show_bug.cgi?id=3380). cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDzmKyIR7qMdg1EfYRAu9ZAJ98mdyr1IPWD0gACv6hAMTjXYE9uwCfQBxe dGr6HhBaIaOgx3NF0l10kaU=A4Vz -----END PGP SIGNATURE-----