Samba cannot resolv ip

Bug #350291 reported by LordGiotto
4
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Ubuntu version: Jaunty Beta
Samba Version: 2:3.3.2-1ubuntu3

My environment is a wireless LAN at my home, with a router that is a bridge to every pc as client with 192.168.1.XXX subnet ip range.
I cannot browse samba's share neither with nautilus, nor with smbclient, nor with smbtree...
I can browse only my own shared folder, but, when I try to browse other client's shares, any client looks at a wrong ip...

The samba server is configured correctly. In fact, if I use windows, I can access all the shared folders. So the problem is the client.

This is my smbtree output, where PC-CHIARA is a WIndows client.

WORKGROUP
 \\PC-CHIARA
timeout connecting to 195.210.87.131:445
timeout connecting to 195.210.87.131:139
cli_start_connection: failed to connect to PC-CHIARA<20> (0.0.0.0). Error NT_STATUS_ACCESS_DENIED
 \\LORD-LAPTOP lord-laptop server (Samba, Ubuntu)
  \\LORD-LAPTOP\HP-LaserJet-1018 HP LaserJet 1018
  \\LORD-LAPTOP\printer LaserJet 1018
  \\LORD-LAPTOP\IPC$ IPC Service (lord-laptop server (Samba, Ubuntu))
  \\LORD-LAPTOP\print$ Printer Drivers

I can solve this problem by adding the correct ip of PC-CHIARA in /etc/hosts, but it is useless if that PC uses a dynamic ip.

Revision history for this message
LordGiotto (lordgiotto) wrote :
Revision history for this message
LordGiotto (lordgiotto) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Are you using opendns?

Regards
chuck

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
LordGiotto (lordgiotto) wrote :

No, i'm using my provider's dns servers...

Thierry Carrez (ttx)
Changed in samba (Ubuntu):
status: Incomplete → New
Revision history for this message
Alvin (alvind) wrote :

What is the output of:
$ nslookup pc-chiara

Can you ping pc-chiara without putting the IP in /etc/hosts ?

Revision history for this message
Thierry Carrez (ttx) wrote :

Also
- Does using "-R bcast" option in smbclient help ?
- Please send the output of the smbclient failure with "-d4" debug level.

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
LordGiotto (lordgiotto) wrote :

nslookup PC-CHIARA outoput:

Server: 192.168.1.1
Address: 192.168.1.1#53

Non-authoritative answer:
Name: pc-chiara
Address: 195.210.87.131

"smbclient -R bcast -L pc-chiara" output:

timeout connecting to 195.210.87.131:445
timeout connecting to 195.210.87.131:139
Connection to pc-chiara failed (Error NT_STATUS_ACCESS_DENIED)

"sbmclient -d4 -L pc-chiara" output:

lp_load_ex: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter server string = %h server (Samba, Ubuntu)
doing parameter wins support = yes
doing parameter dns proxy = no
doing parameter name resolve order = lmhosts wins bcast host
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter syslog = 0
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter encrypt passwords = true
doing parameter passdb backend = tdbsam
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
added interface wlan0 ip=fe80::221:6bff:fe39:c5bc%wlan0 bcast=fe80::ffff:ffff:ffff:ffff%wlan0 netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=192.168.1.111 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 3.3.2).
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permesso negato
Connecting to 195.210.87.131 at port 445
timeout connecting to 195.210.87.131:445
Connecting to 195.210.87.131 at port 139
timeout connecting to 195.210.87.131:139
Error connecting to 195.210.87.131 (Operazione già in corso)
Connection to pc-chiara failed (Error NT_STATUS_ACCESS_DENIED)

At the moment of these attempts, the local ip of pc-chiara is 192.168.1.3

Thank you very much for your help :)

Revision history for this message
Thierry Carrez (ttx) wrote :

Your machine resolves pc-chiara as 195.210.87.131 so it's quite normal that samba cannot connect to it. You probably can't ping it either. This is not a samba bug, more an issue in configuration of your name resolution... You should be able to work around the issue by adding pc-chiara in your /etc/hosts file ?

Changed in samba (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.