Autofs in Catalina does not auto mount
I have 4 shared network drives in my workplace on Win Server 2003 which I connect to using VPN. I can mount these drives, once I connect to the VPN, through the option 'Connect to Server...'; I don't require credentials for mounting the drive as I connect to the VPN using the Win AD credentials which automatically gives access to these drives.
After searching on the internet I came across the Autofs method of auto mounting smb shares and not requiring to manually connect to the shares using 'Connect to Server...' Below is the entries I have made for auto mounting
In /etc/auto_masters I added,
/System/Volumes/Data/mnt/Resources auto_resources -nosuid,noowners
In /etc/auto_resources I added,
Office_D -fstype=smbfs ://192.168.1.200/d
Office_F -fstype=smbfs ://192.168.1.200/f
Office_AGupta -fstype=smbfs ://192.168.1.200/A%20Gupta
Office_Shared -fstype=smbfs ://192.168.1.200/shared
This has created a mount point 'Resources' and my shares are mounted in it.
Now the problem I am facing is that when the VPN disconnects the shares are shown as empty folders; when I reconnect to the VPN the shares do not auto mount. I have to manually connect to the server using the option 'Connect to Server...' and then the shares are mounted at the mount point.
Is there a mistake in my entries that are preventing the auto mounting of the shares?
MacBook Pro 15″, macOS 10.15