Map Windows SMB shares via Profile Manager?

Hi! I'm having a helluva time trying to figure out how to automatically map SMB shares (from a Windows Server fileshare) on a Mac.



I'm coming from a mostly PC background, and I've basically started learning from scratch on how to setup an OSX Server with Profile Manager for the express purpose of actually wrangling control over the Macs that are starting to be in use in our work environment.



I've been able to get pretty much everything else working - all I have running on the server is Profile Manager (with Open Directory as a requirement), but figuring out how to map SMB shares automatically is a mystery. I have a local AppleScript compiled as an .app I can run that does the job perfectly.



I first tried using the Login Items to have Authenticated Network Mounts try to map as smb://servername/sharename - but that just ends up spitting an error along the lines of "can't connect to servername._smb_.tcp.local", so I stopped trying that.



I then tried pushing my script.app as an Enterprise app to the system, but then there's no way to force it to be a startup item using Login Items under Apps.



I'm sure this is done every day but I'm having an incredibly hard time trying to find a simple answer to this. Any ideas?

Mac mini, OS X Yosemite (10.10.5)

Posted on Aug 25, 2015 1:51 PM

Reply
6 replies

Aug 26, 2015 2:08 AM in response to tyler.scorpion

This is a standard option in Profile Manager, try the following.


  1. Login to Profile Manager as your admin account
  2. Go to the device/user or group you are using for defining settings
  3. Select the Login Items payload
  4. In Login Items scroll down to Authenticated Network Mounts
  5. Click the + symbol
  6. Change the protocol to SMB
  7. Fill in the host name e.g. server.domain.com and share name e.g. Files


When the user logs in to their Mac it will automatically use their username and password to try logging in to that share. This means the user account needs to be either a network login account or a portable home directory account. A purely local account it not linked to an Open Directory or Active Directory account and hence will not work.

Aug 26, 2015 10:20 AM in response to tyler.scorpion

If your using a server name like 'fred' so that the URL is like smb://fred/sharename then this is not ideal. It relies on Bonjour working or a search domain being defined in your network settings. So smb://fred/sharename might get translated to smb://fred.local/sharename


You will notice I suggested previous as an example server.domain.com not as apparently you have tried just server


Some networks especially some Windows networks may have historically hijacked the use of .local for Active Directory which can seriously interfere with its use by Bonjour.


Do you or could you use a 'proper' style domain? Even a fictitious one like mydomain.private with therefore a server as fred.mydomain.private would be preferable.


(As far as I am aware no one has officially registered the domain .private and is unlikely to do so.)


The fact you are using Profile Manager implies you may have a 'proper' domain name in use on your network which you could try.

Aug 26, 2015 10:23 AM in response to John Lockwood

Sadly, yes, the fully qualified domain name for the server is servername.domain.local - since I know Bonjour tends to want to use .local for things, could that be directly conflicting with the SMB shares?


No matter how I plug in in the server name, it appears to expand it out to its fully qualified name. The weird part is that it appears that it works EVENTUALLY, it just pops up those error messages complaining about not being able to connect to it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Map Windows SMB shares via Profile Manager?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.