linuxmuster / linuxmuster-client-adsso

Scripts and configuration for ubuntu clients to connect to the linuxmuster.net 7 ad
2 stars 2 forks source link

Disable SMBv1 in pam_mount.xml template #25

Open zefanja opened 4 years ago

zefanja commented 4 years ago

The template for pam_mount sets the SMB version to 1.0.

    <volume user="*" fstype="cifs" server="@@servername@@.@@domainname@@" path="default-school" mountpoint="/srv/samba/schools/default-school" options="sec=ntlmssp,nodev,nosuid,mfsymlinks,nobrl,vers=1.0" />
    <volume user="*" fstype="cifs" server="@@servername@@.@@domainname@@" path="sysvol" mountpoint="/var/lib/samba/sysvol" options="sec=ntlmssp,nodev,nosuid,mfsymlinks,nobrl,vers=1.0" />

Is there a specific reason why this insecure protocol is enforced? Ubuntu 20.04 does not support SMBv1 anymore.

PLanB2008 commented 4 years ago

This seemed to work on my system but I added a pull reuqest to change it to version 3.0. This also adds the ability to see ther current quota from a user perspective.

jolly-jump commented 4 years ago

Thanks again for the notice. I am pretty sure, this is not necessarily vers. 1.0. I have merged the PR #29 . I will test on my machine, may be you could on yours as well.