Apple Event: May 7th at 7 am PT

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

Cant login multiple network accounts on the same client?

Setup:

I have created a simple Lion Server on a new i7 Mac Mini. I have configured Open Directory in Master mode and have setup 4 user accounts. I have enabled the File Sharing service and checked the "Make available for home directories" option on the "Users" file share. I have configured each of the 4 user accounts to use this location as the home folder. I have connected my client machines (all OSX Lion) to the Network Account Server.


Problem:

I can log one user into the client machine, but when using "Fast User Switching" and logging on as the second user I get the following error:

"You are unable to log in to the user account "guestaccount" at this time. Loggin to the account failed because an error occured"


In the console if I search for that user account the related error message is:

11-07-31 12:30:54.993 PM authorizationhost: ERROR | -[HomeDirMounter mountNetworkHomeWithURL:attributes:dirPath:username:] | PremountHomeDirectoryWithAuthentication( url=afp://inntaserver01.local/Users, homedir=/Network/Servers/inntaserver01.local/Users/guestaccount, name=guestaccount ) returned 16


Any thoughts as to why the Home Folder "mounter" failed in this scenario?

Mac OS X (10.7)

Posted on Jul 31, 2011 11:35 AM

Reply
6 replies

Aug 1, 2011 4:36 AM in response to graham255

Historically you have never been allowed to use Fast User Switching to log in multiple network logins on the same client machine. This certainly applied with Tiger, Leopard, and Snow Leopard. I have not yet personally tried this with Lion.


I believe that the underlying reason for this not being allowed is down to how AFP volumes are mounted. The AFP mount becomes 'owned' by the user that triggers the login. With a network login the first user becomes the owner and this means subsequent attempted network logins are denied access to that share and hence cannot access their home directories.


With Tiger, Leopard, and Snow Leopard servers, one could configure network home directories to be shared via NFS instead of AFP. NFS gets treated a lot different in terms of mounting, and is done more at a system level than a user level. While again I have not personally tried Fast User Switching with NFS shared home directories, this approach is specifically recommended by the authors of AquaConnect (a Macintosh Terminal Server solution) in order to allow multiple logins on the same Terminal Server. This seems to be for the same underlying reason. Using NFS does certainly work for use with AquaConnect and also works for the competing iRAPP Terminal Server product as well.


Unfortunately, Lion Server while it can be made to run an NFS server, will not let you configure using NFS for sharing home directories. I have actually reported this as a 'bug' in Lion server.


Neither the authors of AquaConnect or iRAPP have actually tested this scenario with Lion server yet, but AquaConnect do plan to investigate it. It could make it considerably more difficult to use their products.


So in summary, using NFS to share network home directories in theory would avoid the problem and can be done with a Tiger/Leopard/Snow Leopard server, but cannot be done with a Lion server. It is possible however to mix Lion with older server versions. This might for some people be a possible workaround.


PS. A bonus side-effect of using NFS shared home directories was that this allowed badly written software like Adobe's applications which are otherwise notorious for having major issues with network logins and home directories to work without errors. As an example Adobe Acrobat Pro introduced a bug in version 7.0 which prevented it being able to print-to-PDF (one of the major reasons to buy Acrobat Pro). It tooks two years for them to eventually fix this in Acrobat Pro 8.1 (I know because I spent that two years nagging them to fix it and was a beta tester). Unfortunately they then reintroduced the bug in Acrobat Pro 9.0. Fortunately I discovered this side-effect got round the issue although a clunkier workaround was also possible for Snow Leopard clients by redirecting certain folder paths.

Aug 1, 2011 4:26 PM in response to John Lockwood

"Historically you have never been allowed to use Fast User Switching to log in multiple network logins on the same client machine."


I've never seen a Apple restriction around this previously but regardless it used to work fine on SL client and server combo.


Some interesting detail in there though, many thanks... I'm currenltly investigating why i cant log in on Lion Server onto a remote network account.

Aug 2, 2011 2:12 AM in response to AtomicGrog

AtomicGrog wrote:


"Historically you have never been allowed to use Fast User Switching to log in multiple network logins on the same client machine."


I've never seen a Apple restriction around this previously but regardless it used to work fine on SL client and server combo.


Some interesting detail in there though, many thanks... I'm currenltly investigating why i cant log in on Lion Server onto a remote network account.

While this limitation is reasonably widely known, I had previously like you not seen an official Apple document about this limitation. However after a serious amount of googling I have now found an official Apple support document which confirms this. See http://support.apple.com/kb/TA22373?viewlocale=en_US


It says you can't do this with AFP or SMB shared home directories. It does not say you can with NFS shared home directories but I can assure you that does work. Unfortunately Lion no longer supports NFS home directories (at least with a Lion server, it is quite possible a Lion client with a Snow Leopard Server would be ok).

Oct 31, 2011 1:32 AM in response to John Lockwood

You all say it's impossible to login multiple network users with home directories mounted with AFP but it is actually possible. At least in my case. I'm using a Ubuntu Server 11.04 with OpenLDAP and Netatalk AFP filesharing and multiple users CAN login on one client.


I'm not using the homeDirectory attribute but the apple-user-homeUrl, together with a AFP mount point. The only strange thing is, after the client goes to sleep and wakes up with one user logged in another user can't login with the same error. In secure.log this looks like this:


authorizationhost[1359]: ERROR | -[HomeDirMounter mountNetworkHomeWithURL:attributes:dirPath:username:] | PremountHomeDirectoryWithAuthentication( url=afp://fs/Users, homedir=/Network/fs/Users/foobar, name=foobar ) returned 16


After a restart both users can be logged in simultaniously.

Cant login multiple network accounts on the same client?

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