Bug 102768

Summary: problem with smb printer names>13 letters in length
Product: [Applications] systemsettings Reporter: Artem Astafyev <ace>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: chaofeng111
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Artem Astafyev 2005-03-29 18:02:14 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Unlisted Binary Package
OS:                Linux

Printmgr add printer wizard uses smbclient to find shared smb printers on the network. smbclient shows only 13 first letters of printer's name, so if I share printer Printer_TS0_2100, smbclient shows:

        Sharename       Type      Comment
        ---------       ----      -------
        NETLOGON        Disk      Logon server share
        ADMIN$          Disk      Remote Admin
        IPC$            IPC       Remote IPC
        Printer_TS0_2   Printer   HP 2100
        print$          Disk      Printer Drivers

Wizard thinks that printer name is Printer_TS0_2. So printer get installed, but when I'm trying to print to it I got error NT_STATUS_BAD_NAME. If I manually type in full name in printer URI - all works fine, windows clients had no problems.
Comment 1 Michael Goffioul 2005-03-30 10:17:47 UTC
This is indeed a limitation as long as the printer wizard uses smbclient, which was the only available tool when this code was written. Now samba includes a smbclient library that would allow to avoid this problem however this requires a rewrite of the code. I'll turn this into a wishlist item.
Comment 2 Stephan Kulow 2005-03-31 15:55:23 UTC
Michael: don't bother, it won't work either.

All windows versions I know give a big fat warning that older windows versions have a problem with share names (and a printer is nothing else) longer than 11 chars. The protocol these older windows versions (that include afaik <= 98 and samba afaik) speak just don't support more than this. samba4 will have working code that does this correctly.