Bug 94829

Summary: konqueror samba client cannot browse workgroup and local shares
Product: [Unmaintained] kio Reporter: Sabourin Gilles <sabourin.gilles>
Component: smbAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sabourin Gilles 2004-12-10 18:34:46 UTC
Version:            (using KDE KDE 3.3.2)
OS:                Linux

I have settled a local samba server and added my user UNIX account into samba users list to be able to browse local shares on the same computer. I use NT1 samba protocol access with users management.

I also configured samba client with the same workgroup name. I use a wireless network connection with no firewall enabled since I can't open 139/445 ports through the firewall over a wireless connection.

whenever I use konqueror to browse local network, I get the error : " Impossible to find parent's of smb:/ element in the tree. Internal error problem "

Next time, I retry on clicking on " local network " and then I am able to see 2 icons called " windows network " and " all services ".

But I am not able to see my workgroup when I click on " windows network " icon. Instead, I have an empty window.

samba server is ok as I can browse and access my workgroup and server's shares from my laptop under windows.

This is a regression because it worked with last KDE 3.3.1-3 version.
Comment 1 Stephan Kulow 2004-12-13 11:15:55 UTC
what happens if you enter smb:/ in a konqueror ? And what tree are you clicking on? sidebar? 
Comment 2 Sabourin Gilles 2004-12-13 15:28:50 UTC
Stephan, this problem is getting weird. Today, I have connected my 2 PC again and the behaviour of Konqueror is not the same.
Here are my actions :

1- clicking on the house icon in KDE bar to open konqueror on my local account.
2- clicking on the network tab in the sidebar to show in the left part of the window 3 trees called "FTP archives", "Local network", "Web sites"
3- click to open "Local network"; there's 2 ways :
   a-clicking on the "Local network" label. The url field shows "service:/". Previously, this action leaded to the error " Impossible to find parent's of smb:/ element in the tree. Internal error problem ". This is why I opened this bugs report. Today, it is now ok ! I can't reproduce.
   b-clicking on the little cross [+] just before the "Local Network" label to deploy the tree. I've got the error about parent's of smb:/ element.
4- Previously, I retried to click on the "Local network" label, and got finally  2 icons in the right part of the windows : "windows network" and "all services"
5- Previously, I got error about smb:/ element whenever I clicked on "windows network" icon. Today, I get my workgroup icon right there.

==========

Today, when I enter smb:/ in konqueror, I can see my workgroup icon. And I can continue : under the workgroup, I can see my 2 pc and also their shared folders.

I am wondering if this problem was not associated with a samba connectivity problem ...
Comment 3 Stephan Kulow 2004-12-13 17:25:59 UTC
the network protocol used by windows is by no means reliable and you get sporadic errors under windows too. What helps is to start a local samba daemon
that can have a better picture on what's going on.
Comment 4 Sabourin Gilles 2004-12-13 18:33:16 UTC
I have noticed a reverse situation in this case : I could see my shares on my windows XP laptop, but have difficulties to browse from my linux desktop PC.
Both samba server and kde client are under linux.

Linux samba server may have weird behaviour. One time I have forgotten to add my UNIX user account as samba user account, I have noticed that instead of issuing a denied access to the shares, samba server has died.
Comment 5 Sabourin Gilles 2004-12-13 21:40:52 UTC
For now, I can reproduce the tree services deployment problem in konqueror, and also this one : when my desktop computer is alone on the network along with the router, I can't see any workgroup whereas samba server is running.

I should see at least the workgroup and local shares. Whenever I start my windows XP laptop, I can see in first the workgroup appearing in konqueror and last, the netbios name of the laptop.

software versions :

KDE 3.3.2 level "a"
kdebase3-samba-3.3.2-7
samba-3.0.7-5.2
samba-client-3.0.7-5
Comment 6 Sabourin Gilles 2004-12-24 15:22:55 UTC
Suse 9.2 update to samba-3.0.9-2.1 and samba-client-3.0.9-2.1
Seems to be worse. I confirm the whole problem described in my 1st comment.

smb:/ in a konqueror window leads now to :
" Error connecting to the server in charge of smb:/ "

I started my samba server first, just after the upgrade.
Comment 7 Sabourin Gilles 2004-12-25 23:59:02 UTC
Here's something funny about samba server behaviour and netbios management.
Saying that Gilles-portable is netbios name for my laptop, I tried the following command line :

gilles@linux:~> smbclient -L Gilles-portable
Error connecting to 82.101.8.41 (Connexion is refused)
Connection to Gilles-portable failed

and :

gilles@linux:~> nslookup Gilles-portable
Server:         194.117.200.10        => DNS server of my internet provider 
Name:   Gilles-portable
Address: 82.101.8.41                  => an ip address outside my local network !!

So, I concluded I've got these errors in KDE because the netbios name "Gilles-portable" is translated by a DNS server in the WAN area instead of using netbios method in local network !!!
Comment 8 Sabourin Gilles 2005-03-11 18:21:44 UTC
Unfortunately, an internet based DNS server answered to my request. Normally, no one should have. This error was not a permanent one and disappeared of course, during the inactivity time periods of the server !

I fixed this in modifying the name resolve order samba parameter. I deleted "host" in order to avoid to reach any internet based DNS server. The samba standard configuration should be modified each time there is no local DNS server in the local network AND no netbios name definition in /etc/hosts file.

I performed well with smb4k client, but konqueror first access always generates an error. 

KDE 3.4.0 Level "a"
samba 3.0.11-2.1 for SuSe 9.2
Comment 9 Dawit Alemayehu 2013-08-18 23:19:02 UTC
KDE 3 is no longer maintained. Feel free to reopen the ticket if the problem is still applicable in the current stable KDE 4 version. Thank you for your report.