PDA

View Full Version : SMB login script to DiskStation has stopped working??




jmpage2
Aug 24, 2013, 12:33 PM
So, something really odd going on here and I'm hoping someone has ideas. I haven't done any updates on the DiskStation so I'm wondering if there could be a breakage on the OS X side (I remember doing some updates a few days to a week ago).

I've been running the auto mounting script below now for years, all the way back from the Leopard days.

Starting today, when I run the script I am getting a password box pop up asking me to enter the credentials for the DiskStation... which has never happened before. Also, when I enter the correct credentials it refuses to take them.

Strangely, I can log into the server by clicking "login as" on the server in Finder and supplying the same credentials, and then mount all of my shares via the Finder manually.

Does anyone have any ideas?

delay 2
tell application "Finder" to open home
tell application "Finder"
try
mount volume "smb://jason:xxx@bogart/Movies"
delay 2
mount volume "smb://jason:xxx@bogart/Music"
delay 2
mount volume "smb://jason:xxx@bogart/Photos"
delay 2
mount volume "smb://jason:xxx@bogart/Public"
delay 2
mount volume "smb://jason:xxx@bogart/Videos"
delay 2
mount volume "smb://jason:xxx@bogart/home"
delay 2
mount volume "smb://jason:xxx@bogart/TV"
end try
end tell
tell application "Finder" to close home



jmpage2
Aug 24, 2013, 12:47 PM
I rebooted the Synology and now it's working again. Weird, maybe an SMB bug or credential timer issue in Synology.