Bug 243522 - Samba printers are not displayed
Samba printers are not displayed
Product: Fedora
Classification: Fedora
Component: system-config-printer (Show other bugs)
All Linux
low Severity high
: ---
: ---
Assigned To: Tim Waugh
Depends On:
Blocks: F8Target
  Show dependency treegraph
Reported: 2007-06-09 07:54 EDT by The Source
Modified: 2008-08-02 19:40 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-21 13:46:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description The Source 2007-06-09 07:54:44 EDT
Description of problem:
When adding new printer this tool does not display list if samba printers. I can
only set url manually (everything is fine in that case). It sees samba groups
but displays nothing in them.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Tim Waugh 2007-06-12 13:26:35 EDT
What output do you get when you run this command?:

python /usr/share/system-config-printer/pysmb.py
Comment 2 The Source 2007-06-13 02:04:58 EDT

That's it.
Comment 3 Patrice Vetsel 2007-07-25 04:50:36 EDT
Same problem in Ubuntu look at #127152
for instructions how we solve it for gnome-cups-manager.

kagou@satori:~$ python /usr/share/system-config-printer/pysmb.py

kagou@satori:~$ findsmb 
---------------------------------------------------------------------   PATRICE        [        ENTREPRISE    ]   RENE           [        ENTREPRISE    ]   SECRETAIRE     [        ENTREPRISE    ]   JEANCLAUDE     [        ENTREPRISE    ]

and doing :
(for i in `export LC_ALL=C; findsmb 2> /dev/null | egrep
'^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tr -s " " | cut -f2 -d ' ' | uniq | sort`;
do echo $i; echo ---------------; export LC_ALL=C; smbclient -N -L $i 2>
/dev/null | grep Printer; echo; done

output :

        HP 1120C A3     Printer   


        EPSON5700       Printer   

Comment 4 Till Kamppeter 2007-08-05 09:41:22 EDT
Patrice, can you run the following commands and post the output here:

smbclient -N -L //
nmblookup -R 'ENTREPRISE'
nmblookup -A
nmblookup -A
nmblookup -A
nmblookup -A

The first one is used by s-c-p and probably will not give any useful output for
you. The second one should give you the IPs of all servers in the domain
"ENTREPRISE" (which are the four IPs of the boxes findsmb has found for you).
The last four commands reveal the NetBIOS names of each of your four boxes.

Does this happen that way? Can you post the output here? With this we will be
able to fix s-c-p.
Comment 5 Till Kamppeter 2007-08-21 15:15:55 EDT
I have done a possible fix in the upstream Subversion repository of
system-config-printer now.
Comment 6 Till Kamppeter 2007-08-27 17:18:31 EDT
My fix was confirmed now and it is part of system-config-printer 0.7.73. This
version will probably soon get RPMized by Tim.
Comment 7 Simon 2007-09-04 19:04:27 EDT
It appears that 0.7.63 has just been released, did you mean that one?
Comment 8 Till Kamppeter 2007-09-04 19:15:47 EDT
The freshly released one with my fix is 0.7.73. If you got 0.7.63 you have an
old release still containing the bug. Perhaps Red Hat packaging did not catch up
Comment 9 Tim Waugh 2007-09-05 05:59:16 EDT
No, 0.7.63 does not contain that fix.

Please try out this pysmb.py file:

Note You need to log in before you can comment on or make changes to this bug.