Ubuntu clients can't connect to FreeNAS via SMB + AD

Status
Not open for further replies.

Luke Jaeger

Dabbler
Joined
Mar 16, 2016
Messages
43
I have a FreeNAS box serving student home directories via Samba. Users can log into the FreeNAS from any Mac or Windows machine on campus and mount their home directory via smb://someuser@my.server.edu (Mac) or //my.server.edu/ (Windows). The FreeNAS is bound to our campus AD system which handles authentication. That all works fine, whether or not the Mac or PC is bound to AD. (Some are, some aren't -- login works either way).

We are rolling out a bunch of laptops running Ubuntu Desktop 18.04 and I cannot get these to connect to the FreeNAS no matter what I try. I get a password error (even though I typed it right) or "File does not exist".

Network connectivity, DNS, etc are working properly on the Ubuntu laptops. I can SSH into the FreeNAS from one of the laptops, but need to get it so that students can mount their home directory as a Samba share.

Any guidance appreciated!
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
I have a FreeNAS box serving student home directories via Samba. Users can log into the FreeNAS from any Mac or Windows machine on campus and mount their home directory via smb://someuser@my.server.edu (Mac) or //my.server.edu/ (Windows). The FreeNAS is bound to our campus AD system which handles authentication. That all works fine, whether or not the Mac or PC is bound to AD. (Some are, some aren't -- login works either way).

We are rolling out a bunch of laptops running Ubuntu Desktop 18.04 and I cannot get these to connect to the FreeNAS no matter what I try. I get a password error (even though I typed it right) or "File does not exist".

Network connectivity, DNS, etc are working properly on the Ubuntu laptops. I can SSH into the FreeNAS from one of the laptops, but need to get it so that students can mount their home directory as a Samba share.

Any guidance appreciated!

Start by uploading the output of testparm -s and tcpdump -w /tmp/smb.pcap -s 0 -p -i <your interface> host <ip of the ubuntu client> and port 445.

If this is a test environment, increase logging on samba for that pid smbcontrol <pid> debug 10, reproduce issue, drop logging down again smbcontrol <pid> debug 1 and post /var/log/samba4/log.smbd.
 
Last edited:

Luke Jaeger

Dabbler
Joined
Mar 16, 2016
Messages
43
testparm -s output


Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
dns proxy = No
log file = /var/log/samba/log.%m
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
server string = %h server (Samba, Ubuntu)
syslog = 0
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb


[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes


[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
 

Luke Jaeger

Dabbler
Joined
Mar 16, 2016
Messages
43
The tcpdump command results in a file full of unreadable junk:
 

Attachments

  • Screenshot from 2018-07-30 09-45-29.png
    Screenshot from 2018-07-30 09-45-29.png
    251.9 KB · Views: 715

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Code:
32   15   138.110.243.165   138.110.92.8   SMB2   196   Tree Connect Request Tree: \\<redacted server name>\~
33   15   138.110.92.8   138.110.243.165   SMB2   143   Tree Connect Response, Error: STATUS_BAD_NETWORK_NAME


Your Ubuntu client is requesting an SMB connection to a non-existent share "~".
 

Luke Jaeger

Dabbler
Joined
Mar 16, 2016
Messages
43
Code:
32   15   138.110.243.165   138.110.92.8   SMB2   196   Tree Connect Request Tree: \\<redacted server name>\~
33   15   138.110.92.8   138.110.243.165   SMB2   143   Tree Connect Response, Error: STATUS_BAD_NETWORK_NAME


Your Ubuntu client is requesting an SMB connection to a non-existent share "~".

OK, I feel like a moron now .... user error! thanks ...
 
Status
Not open for further replies.
Top