Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't make single sign on work to connect to server

Still following and learning from Reid Bundonis' excellent El Capitan Server iBooks, I want to log into my file server without having to sign in. As far as I know I have everything in place; DNS works as does my Open Directory. I have a FQDN and SSL for the Server. The only thing I haven't yet setup is Profile Manager but I have bound my Mac to the Server. So now I should be able to 'Connect to Server...', select afp://files.myserver.tld to be presented with a list of volumes to mount. But no, I have to authorise myself.


What could I have missed?


Many thanks.

Posted on Nov 11, 2015 1:04 AM

Reply
23 replies

Nov 12, 2015 6:58 AM in response to David Gordon

Remember this bit from above:

In Directory Utility, you have already set up your Authentication chain to use, in this order:


/Local/Default

/LDAPv3/<your-fully-qualified-domain-name>


so when you go to log in, accounts that do not appear locally will be sent to the Sever for authentication by the Server, and if authenticated, will return a Kerberos ticket-granting-ticket as well as logging in on the local Mac.


If you are using an established MacBook account, it will show up in /Local/Default and your credentials will never be sent to the Server for authentication.

Nov 12, 2015 8:40 AM in response to David Gordon

if I try and log into my mac using my Server credentials

What do you mean when you say, "My server credentials"?


The credentials that will get you connected (from the MacBook) are exactly Accounts that ARE in the Server's LDAP database of accounts, but are NOT in the local accounts on the MacBook, and are set to allow login. Local Accounts on the Server are not in the Authentication chain.

Nov 12, 2015 9:02 AM in response to Grant Bennet-Alder

John Smith has a Mac, he is an Admin user. His username for the Mac is John Smith, short name johnsmith with password johnsMacPassword. He switches his Mac on and enters those details to do whatever he needs to do.


John's company has a Mac OS X Server where the Server Administrator has created a User named John Smith with the short name johnsmith and the password johnsServerPassword.


John's Mac is bound to the Server which is set up with DNS etc etc., and he is allowed to access documents in the Shared Folders by accessing them using "Connect to Server..." at afp://documents.thecompany.tld where he must enter his server credentials johnsmith and johnsServerPassword.


When John comes to work in the morning and logs on to his Mac he has to use his Mac password, johnsMacPassword. He can't log on to his Mac using his Server password johnsServerPassword.


Jane Jones is also setup as a User on the Server. She hot desks and so is a Network Home User with only a single Username and password. She can sit at John's Mac, log in and use that Mac. When she needs files she uses "Connect to Server..." and gains access without further need of a password.


John want to be able to do the same but isn't able to log into his Mac using his johnsmith and johnsServerPassword server credentials.

Nov 13, 2015 1:09 AM in response to David Gordon

Jane, being a local Network User has ALL her files on the Server.


The Other case needs Portable Home directories.


Suppose John wants to bring his own MacBook, single sign-on and get access to the Server files, and carry his MacBook home with him at night and use it without server access from home. DON'T Create two different logins!


Make John a portable network user. To start, he has NO local login info on his MacBook. He starts with all his files on his account on the Server.


John logs on for the first time using his Server LDAP credentials. Because of a Login setting, he is presented with a Dialog box, inviting him to make a synchronized local copy of his entire User Home folder [including locally-authenticated login info used when the Server is not available] from the Server onto his MacBook. He endures a one-time synchronization, which may take 10 minutes (longer over Wi-Fi).


At the end of the day, he logs out and takes his Macbook home. At home, he logs in with the same Server credentials he used before. They allow him access to all of his files local Home files copied to the MacBook. He surfs the web and reads and sends emails and prepares a presentation for next week that does not require documents from the Server.


He returns to work. He logs on with his Server credentials, and has access to his local files and Server files. Local files are used preferentially. IF he chooses, he can so a synchronization that brings BOTH copies up to date with each other.


Sync-ing is a pain, but it works in the Background. You can provide Server-based Backups of the Network Home Folders IF (and only if) the Users synchronize their files back to the Server. Also, tell them not to change their password while NOT connected to the Server.

Nov 13, 2015 1:10 AM in response to David Gordon

Yikes, I did not realize the thread was so long. I posted on the community site also but just to link back, here are some thoughts.


1: You are correct in the local user (created in system preferences) can not participate in single sign on. The reason is that even though the local workstation user is UID 501 and that local admin may share the same name as the server 501 local admin, the accounts are different. They have different GUIDs. In addition, the local account on the server is not "seen" by the shared domain "Open Directory." This is why when you log into a workstation with a locally created account you must then auth to file services. While the device is trusted by the domain due to the bind, the user is unknown and thus is prompted to authenticate. This is also why in one of your examples you mentioned John Smith has a local account and a domain account. Follow this logic:


John is given a Mac. He creates the first account on the machine as is given a DSLocal UID of 501 and a GUID generated at time of account creation. His home folder on the workstation ALREADY is created and exists at /Users/jsmith. Next, his company creates an account for him in Open Directory. The Open Directory account is also jsmith but it has a UID of 1030 and a GUID generated at time of creation (GUID is generated UNIQUE id). So while John has an account in two location that based on name appear to be the same, these accounts are different based on UID and GUID.


2: Network Home Folders users (users with home folders on the server) only require binding to the domain. A simple bind will allow the user to login because the network home folder path is part of the user ID. It is that attribute that directs the machine to mount the net home share and grant access to the home folder. Now, since the account is a domain account, access to other resources is transparent because of the Kerberos infrastructure. Network Home folder users can only access the workstation when on the LAN and the net home is accessible. Network Home Folder is not a solution for laptop users (unless in a shared use environment like a school).


3: Mobile accounts. I think I know what you are missing. Mobile accounts need a bit more. First, let's take the user account.

a: If you create the account as Local Only, the proper home path will be created in the user account. For this example, let's use the user John Doe with short name of jdoe. If you make his account using Local User as the Home folder popup, then a folder is created on the server's /Users folder. I hate this and thus is why I suggest creating the account as None - Services Only and then editing the account to define a valid home path. (Yes it is more work but creating the folders in /Users on the server and auto-sharing them is a disaster waiting to happen.) In this case, /Users/jdoe.

b: Technically, that is all that is needed of the user account. Ah, now for device trust. This is binding. If you are manually binding to the OD domain you are using System Preferences > Accounts or, as I prefer, Directory Utility. This creates a machine record in OD and forms a trust between the workstation and the server. By having device trust, we assume things like DNS and time match or are within tolerance.

c: Ah, but as you are discovering, setting a valid home folder path and binding to OD is not enough... In the old days it was. You would then use OD to define MCX for the mobility payload. MCX is effectively gone, leaving Profile Manager in its place. You need to set the mobility settings allowing mobile accounts. Aha you say! How do I do that?


So you have two methods to make this happen. Both involve enabling Profile Manager. Now, you don't need to enroll your devices into profile manager (although in the long run it is easier). You can enable Profile Manager, create or manage an OD group and define the Mobility setting. Once you have it defined, you can download the profile and manually install it on your workstation. But that is a lot of work.


If you want to go the full experience, you will enable device enrollment, enroll your workstation into profile manager, and then deliver the Mobility profile to the machine. At minimum, you simply need to check the box to allow mobile accounts. (oh, take a look at the second tab and uncheck the highly annoying auto-logout feature...). Also, the ideal way to do this is to enroll the device first and use the Directory and Mobility payloads to bind the machine and enable mobile account access. It remains good to understand the individual steps but as you understand you can streamline the individual actions into a single process.


These steps are covered extensively in El Capitan Server - Control & Collaboration. The pages you want to look at are:

Profile Manager chapter starting on page 10

Enabling Device Management on page 20

Enrolling Devices on page 33

Setting policy on page 44 - Jump to My First Policy on page 42 for exactly what you are trying to do


Then there is the Users and Groups chapter that tries to cover the myriad of account types in OS X. And finally the Putting is all Together chapter has a complete walk through in the John Q Public - Managed Mobile User section.


Let me know if this helps! I missed the discussion on the forum. Sorry about that. I tried to help the community when I can. I've posted in both locations with minor variations.


Let me know if you get unstuck or if you need more help.


Reid

Apple Consultants Network

Author "El Capitan Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

Author "El Capitan Server – Control & Collaboration" :: Exclusively available in Apple's iBooks Store

Author of Yosemite Server and Mavericks Server books

Nov 14, 2015 11:28 AM in response to Strontium90

Many, many thanks to both Grant Bennet-Alder and Strontium90, I think its finally sinking in!


Naturally I now have more questions surrounding Network and Portable Home Directories but I think I’ll start a new discussion as this one is long enough.


So yes, I now understand only Network Home and Managed Mobile Users are able to access their Shared Folders without further authentication. I’ve gone back and read a few pages over again and have successfully made myself a Portable Home User. Naturally, that didn’t go a smoothly as it might but I got there in the end!


Reid, these are really good and useful books. I’m sorry I didn’t come across them until the latest editions. The other OS X Server books I’ve bought have only really been about the basics. You’re showing me I can do things in a small office I thought were only for enterprise users. Things like single sign on may appear small but create a much simpler system for people to use.


Obviously I’m keen to try things out and maybe I’m trying to run before I can walk. Or I’m just not reading closely enough! Perhaps also I’m getting into trouble as I want to convert users: I have Users already set up but a lot of the book is about creating a new server setup. So sometimes I may skip and miss a bit because I think “I’ve done that already”!


Thanks again, and don’t worry, I will have more questions…


David

Can't make single sign on work to connect to server

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