Ldap-аутентификация
pam-mount
sudo apt-get install libpam-mount cifs-utils
cat /etc/security/pam_mount.conf.xml
<pam_mount>
<mkmountpoint enable="1" remove="true" />
<volume user="*" fstype="cifs" server="cdshost" path="%(USER)/Документы" mountpoint="/home/%(USER)/Документы" options="file_mode=0700,dir_mode=0700,nodev,nosuid,iocharset=utf8" />
<volume user="*" fstype="cifs" server="cdshost" path="%(USER)/Рабочий стол" mountpoint="/home/%(USER)/Desktop" options="file_mode=0700,dir_mode=0700,nodev,nosuid,iocharset=utf8" />
</pam_mount>