How do you connect to a Samba share from macOS when using a Microsoft account?
Solution 1:
You don’t have to do anything on MacOS other than open the finder and connect using Command K - connect to server.
When the dialog pops up, put in your UPN or domain\[email protected] and enter the correct password and optionally save to the keychain.
Anything you do to edit /etc files will complicate things, so I would roll those back. If you want to lightly bind the user account to a directory, you can look at things like Apple Enterprise Connect or NomAD or Jamf Connect. Binding the mac to AD causes a lot of pain, so most pros avoid that now and use a different tool if you can’t just use the out of the box setup with Keychain.
My only guess at this point is you somehow need to federate the directory services on linux to ADFS / Microsoft online to get that pairing to work. This synology related article calls this transparent SMB authentication but I'm not sure if that's the correct term to search. The other question says it's using WinBind.
- https://blog.danic.net/enabling-transparent-smb-authentication-between-your-microsoft-account-and-your-synology-diskstation/
- Macs Disconnect from SMB Share: "STATUS_NETWORK_SESSION_EXPIRED (0xc000035c)"