Bug 102768 - problem with smb printer names>13 letters in length
Summary: problem with smb printer names>13 letters in length
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 18:02 UTC by Artem Astafyev
Modified: 2014-09-13 19:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.