Q: Allowing clients to access AFP file share using Active Directory Credentials
Hi,
We've set up Active Directory on our Mac OSX Lion (10.7.4) server using Apple's Directory Utility plugin.
Current state:
- we can successfully id active directory usernames
- we can successfully su to active directory accounts
- clients (all running 10.7.4) are able to authenticate using ssh to access the server when the username is added to
the Remote Management section of the Sharing Preferences
We'd like to be able to use AD credentials to access the AFP/SMB file share on our Mac OSX Lion server but authentication attempts have been unsuccessful. As a result, we allow guest access to the file share, which is undesirable.
We tried prepending the domain to the username (DOMAIN\username) at the login window but that didn't work.
The server logs tend to print out the following error when attempting login:
AppleFileServer[67073]: received message with invalid client_id 2427
No errors are logged on the client side.
Could this be related to the static vs dynamic UID mapping issue outlined in this article?
http://www.macworld.com/article/1056791/activedirectory.html
Thanks for your help
Mac OS X (10.7.4)
Posted on Jun 11, 2012 5:06 PM
Well then, you're in luck because I figured it out last night, but was too tired to come back here and update.
By changing a particular plist (for the file sharing daemon, whose name escapes me at the moment) to log accesses via AFP (not just errors), I was able to find that the SACL (Service ACL) for AFP was denying our logins.
So, what you need to do is download the Server Admin Tools for Lion (not the same as Server.app - http://support.apple.com/kb/DL1419), and click your server on the left side. Click Access at the top, and verify that your AD users are permitted to log in. (Mine was set to only allow my local admin account; I changed it to DOMAIN\Domain Users.)
I'm not 100% sure this is your problem, but it fixed it for me.
Posted on Jun 21, 2012 5:12 PM