Network user authentication for VNC sessions not working
I am trying to enable Open Directory network users to connect to an Open Directory server (master or replica) using their network credentials. This is on macOS 10.12.6 and Server 5.3.1.
- The Open Directory master/replica configuration is working properly.
- Each OD server has itself listed as the Network Account Server in System Preferences:Users & Groups:Login Options, and "Allow network users to log in at login window" is enabled.
- In System Preferences:Sharing, Remote Management is enabled, and "Allow access for: All users" is selected.
- In Server.app, under the "Access" tab, access is allowed for all users, all networks.
- Both Local and Network users can successfully log in at the login window.
- Local users can login remotely using VNC.
- When a Network user attempts to login remotely using VNC, the authentication box shakes. On the server, the screensharingd log throws an authentication error.
Looking at the screensharingd and opendirectory logs, it appears that screensharingd queries Open Directory, which authenticates the user, but screensharingd ignores it.
| default | 09:24:28.673475 -0500 | com.apple.AccountPolicyHelper | (16462.172.3) AuthenticationAllowed completed: record "<user>", result: Success (0). |
| default | 09:24:28.690605 -0500 | screensharingd | Authentication: FAILED :: User Name: <user> :: Viewer Address: 192.168.0.5 :: Type: DH |
Any ideas?