I've found instructions on how to auto mount an SMB share, but they either involve adding the share to the login items (I'm using a laptop and that gives me an error when I'm not in the same network as the SMB share), or adding my login and password into the fstab or auto_master file (if I change my password, as I should, I have to go reconfiguring the system).
My user and password are stored in the keychain, and I only want the system to mount the share when I'm in the same network. I'm lazy and I want this to happen automatically. Is it possible?