NethServer Version: 7.4.1708
I have followed this guide on configuring the client system: HOWTO for Neth 7 as AD PDC and file server with Ubuntu and Windows clients
Now, the issue is with
<volume user="*" fstype="cifs" server="master" path="%(DOMAIN_USER)" mountpoint="/home/%(DOMAIN_USER)" options="nosuid,nodev" /> in my /etc/security/pam_mount.conf.xml file
The login username is firstname.lastname@example.org but the AD module runs using email@example.com
When I log into the station with PAM, it works successfully, using firstname.lastname@example.org as the username, but the pam_mount fails as it runs this:
mount -t cifs //email@example.com /firstname.lastname@example.org -o email@example.com
instead of what it needs to be which is
mount -t cifs //firstname.lastname@example.org /email@example.com -o firstname.lastname@example.org
How can I configure the share path to use @domain.lan instead of @ad.domain.lan?
Both %(DOMAIN_USER) and %(USER) seem to return the same value, email@example.com, so configuring the path as “/%(USER)@domain.lan” did not work, as it returned the value of “firstname.lastname@example.org@domain.lan”
I am so close to everything working as expected, except for the fact the pam auto mount generates the wrong path in the mount command.
Any helps is truly appreciated.