Is it possible to use
pam_mount, using user’s password for the mounting command ?
How would one achieve that ?
Reading the documentation, it seems this might be a good start, but no way to inject password this way.
<volume user="%(USER)" fstype="fuse" path="gvfs-mount smb://%(USER)@NAME/SHARE" mountpoint="/run/user/%(USERUID)/gvfs" />