OS: FreeBSD 4.5-STABLE #12: Mon Apr 29 09:57:49 EDT 2002 Samba: 2.2.3a / 2.2.4 Printing: CUPS 1.1.14
According to the logs for 2.2.4, I've been asked to send this message to samba-technical. I'm having problems with setdriver and enumprinters, as well as a problem getting printer properties from win2k after upgrading to 2.2.4 . SETDRIVER: ---------- (Note: I'm setting the drivers for all my printers to Apple drivers so Windows will generate PS instead of PCL so I can count pages. For all I know, this is causing some kind of problem) When I run the following command from rpcclient setdriver ps502 "Apple LaserWriter II NT v47.0" I get the following error in the logs: [2002/05/03 12:44:07, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(651) spoolss_io_devmode: Unknown specversion [0x0]! [2002/05/03 12:44:07, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(652) spoolss_io_devmode: Please report to [EMAIL PROTECTED] [2002/05/03 12:44:07, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(651) spoolss_io_devmode: Unknown specversion [0x0]! [2002/05/03 12:44:07, 0] rpc_parse/parse_spoolss.c:spoolss_io_devmode(652) spoolss_io_devmode: Please report to [EMAIL PROTECTED] On the client side, I get this: rpcclient $> setdriver ps502 "Apple LaserWriter II NT v47.0" prs_mem_get: reading data of size 4 would overrun buffer. zsh: segmentation fault (core dumped) rpcclient ash Running a getprinter gives this interesting result: rpcclient $> getprinter ps502 flags:[0x800000] name:[\\ash\ps502] description:[ash\\ash\ps502,Apple LaserWriter II NT v47.0,®P-êäå.êp;c] comment:[®P-êäå.êp;c] Corresponding printers.conf entry: <Printer ps502> Info HP LaserJet 4si in E314 DeviceURI socket://ps502:9100 State Idle Accepting Yes JobSheets none none </Printer> I'm not sure why it's getting garbage. From looking at my other printer configs, samba appears to be getting the information from the CUPS printers.conf "Info" section: rpcclient $> getprinter ps114 flags:[0x800000] name:[\\ash\ps114] description:[ash\\ash\ps114,Apple LaserWriter II NT v47.0,HP Printer in 114] comment:[HP Printer in 114] From printers.conf: <Printer ps114> Info HP Printer in 114 DeviceURI socket://ps114:9100 State Idle Accepting Yes JobSheets none none </Printer> I guess one of the printer DBs was corrupted somehow, as I found a workaround for this: mv /usr/local/var/samba/locks{,.bak} and allow smbd to recreate it . I figured I'd still report it so all this is in the archives. ENUMPRINTERS: ------------- Under 2.2.3a, enumprinters gives the following error: rpcclient $> enumprinters result was NT_STATUS_BUFFER_TOO_SMALL Interestingly enough, this problem showed up "after a while", perhaps due to adding more printers. Under 2.2.4, I get this from the client: rpcclient $> enumprinters rpc_api_pipe: cmd 26 on pipe 7637 failed to return data. result was NT_STATUS_UNSUCCESSFUL and this in the logs: [2002/05/03 13:25:14, 0] rpc_server/srv_pipe_hnd.c:unmarshall_rpc_header(412) unmarshall_rpc_header: assert on frag length failed. getprinter <printer> still works, however. This is after having recreated the locks directory. PROPERTIES ---------- Moving from 2.2.3a to 2.2.4 has caused some of my printers to be unable to display printer properties. When trying to get debug info, I found -d 2 provided almost no insights, while -d 3 provided thousands of lines information. Does anyone know what I should be looking for? If anyone wants the smb.conf or any other info, I'll be glad to provide it. ---------------------------------------------------------------------- | Jim Hranicky, Senior SysAdmin UF/CISE Department | | E314D CSE Building Phone (352) 392-1499 | | [EMAIL PROTECTED] http://www.cise.ufl.edu/~jfh | ----------------------------------------------------------------------