I have two servers running opensuse 13.1, ftp1 and ftp2. On both I have samba running with identical smb.conf configurations. I can access my home directory share ‘/home/chapan’ on ftp1 with the command:
smbclient //ftp1/homes -U chapan
If I try to access my home directory on ftp2 with the command:
smbclient //ftp2/homes -U chapan
it returns the message:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
If I look at the /var/log/samba/log.smbd on ftp2 file I see:
[2014/01/03 10:01:38.170584, 0] …/source3/smbd/service.c:784(make_connection_s
canonicalize_connect_path failed for service chapan, path /home/AD/chapan
AD is our microsoft active directory domain name. So on ftp2 samba looking for the domain name as part of the path whereas ftp1 is not. I tried copying every configuration file I could from ftp1 to ftp2 to try to make them work the same but I still get the error on ftp2. So there must be something different on ftp2, but I cannot find out what it is.
I’m also having Samba issues. I cannot see any of my shares. It took me a few hours to get Samba configured in 12.2 through the Samba Server GUI but 13.1 it just will not work. Apparmor is disabled and my firewall exceptions are all set. I’ve even turned the firewall off and still nothing. I went as far as to edit the smb.conf but that doesn’t work either. Samba and OpenSuse just do not play well together. I posted my issue yesterday and no responses yet. I’m thinking a bug maybe but who knows.
If the smb.conf is the same on both servers, the difference must be in the databases of Samba users or the servers’ configuration. I see two problems from what you described:
chapan’s home path isn’t the same on both servers
chapan’s home isn’t created on the fly on ftp2
The difference in chapan’s home path on ftp1 and ftp2 could be caused by a different interpretation of the Samba user chapan on ftp1 and ftp2. On one hand ftp1 believes chapan isn’t a member of AD. On the other hand ftp2 thinks that chapan is member of AD. This makes me think of two things:
chapan may be a local user on ftp1, this would explain why chapan’s home exists on ftp1 but not on ftp2
winbind use default domain is set to Yes on both servers
If my second thought is true, you should set winbind use default domain to No in order to avoid confusion between chapan and AD\chapan.
Even if chapan authenficated correctly to ftp2, chapan’s home wasn’t created on the fly. From Samba wiki, a solution is to add this line of code in /etc/pam.d/system-auth: