Bug 4869 - Printer Listing fails if printcap file has 16+ characters
Summary: Printer Listing fails if printcap file has 16+ characters
Status: NEW
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Extended Characters (show other bugs)
Version: 3.0.25b
Hardware: x64 Linux
: P3 major
Target Milestone: none
Assignee: Alexander Bokovoy
QA Contact: Samba QA Contact
Depends on:
Reported: 2007-08-08 12:20 UTC by Carsten Menke
Modified: 2007-08-08 12:24 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Menke 2007-08-08 12:20:40 UTC
If the printcap entry (generated by CUPS) has more then 16 characters you won't get any printer listing in samba, if you do not have set the printing parameter 

If you set 

printing = CUPS

it works, however if you set 

printing = CUPS
printcap = cups

it does work not. If your printer Alias has no whitespaces, the first column of /etc/printcap works with more then 16+ characters however, then the second colun is limited to 16 characters.

From what I found on the net M$ has a Limitation on Printer Names when printing using the unix lpr service, however this is Printer Share and *not* Microsofts lpr service.

Below are the results I tracked down ( I have just tested this with only 1 printer listed in /etc/printcap)



PrinterSomethin|HP DeskJet 970C:rm=hauptserver.some-domain.local:rp=PrinterSomethin:



PrinterSomething|HP DeskJet 970C:rm=hauptserver.some-domain.local:rp=PrinterSomething:


Additionally you find this in the logs

[2007/08/08 19:02:59, 1] smbd/ipc.c:api_fd_reply(290)
  api_fd_reply: INVALID PIPE HANDLE: 76de

So if you decide that this is not Bug, then the documentation of smb.conf(5) has to be updated to reflect this limitation.
Comment 1 Carsten Menke 2007-08-08 12:24:37 UTC
Sorry the last testcase should have read


(Note the 'g')