Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iStorm

macrumors 68020
Original poster
Sep 18, 2012
2,128
2,552
I recently got a NAS (Synology) and am in the process of setting it up. I'm wondering if it's possible to have the Mac log into the server share using the logged in user's username/password when trying to connect to it, like it does for Windows...

For example:
Say my username is 'johndoe' and password 'abc123' on the Synology, Mac, and Windows. On Windows, if I go to '//Server/FolderShare', it will connect right away and show the files. There is no prompt to log in, unless the Window's username or password doesn't match any users on the NAS.

However, on the Mac, if I connect to 'smb://Server/FolderShare' or 'afp://Server/FolderShare', I get prompted to log in, with the username already populated with the logged in user. SMB will have 'johndoe', and AFP will have 'John Doe'. (I've tried having 'John Doe' on the NAS as well.)

I realize I can just save the username/password in Keychain on the Mac, but was just curious if it's possible to make it a little more seamless by having the Mac try to authenticate automatically using the logged in user's username/password first before prompting.
 
Windows uses Active Directory to pass your credentials to the server which checks your rights to the resources. There's no intervening service to allow that by default, though I suppose you can possible implement some LDAP service. What I've done, is set up an account that uses the same name and password on the NAS as my Mac and that works reasonably well. I still need to type in my password but I'm ok with that.
 
If you format the SMB path as follows:

Smb://username:password@server/share

And then create shortcut on the desktop, for example. Or add that shortcut to your Login Items and have it automatically mounted at boot.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.