Samba authentication loop

The authentication box keeps reappearing when connecting to a share from netrunner. I can access the shares from the terminal, but not from the file manager. My username and password are correct because they work in the terminal. Has anyone else had this? Is there a way to fix it?