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 email@example.com but the AD module runs using firstname.lastname@example.org
When I log into the station with PAM, it works successfully, using email@example.com as the username, but the pam_mount fails as it runs this:
mount -t cifs //firstname.lastname@example.org /email@example.com -o firstname.lastname@example.org
instead of what it needs to be which is
mount -t cifs //email@example.com /firstname.lastname@example.org -o email@example.com
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, firstname.lastname@example.org, so configuring the path as “/%(USER)@domain.lan” did not work, as it returned the value of “email@example.com@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.