Can anyone suggest a process that will allow a user to have their Windows network share mounted to a Linux directory after they are logged into the Linux machine via OpenLDAP? The current options I've thought of...
Give each user the ability to mount directories - This doesn't work as I don't want to open the security vulnerability of overwriting other directories
Create a smb credentials file and have a script in bash_profile mount the directory - This doesn't work as the user will still need to have mount permissions, and the user's AD passwords will be changing
...I tried using AutoFS, but when accessing the mounted directory, I'm never prompted to enter a password, and the directory doesn't show my user's folders.
AutoFS Example... File: auto.master
<user> -fstype=cifs,rw,username=<user> //network/path
Also, just for reference, the CIFS share can be mounted when running the mount command manually. Is there any other way someone has achieved this situation where a user authenticates over LDAP, and once logged in, can browse to their Windows network shares? Trying to accomplish this in either Fedora or Ubuntu.