What is System Authentication?
If you have a Professional or Enterprise subscription, then by default VNC Server is set to use system authentication. This means that VNC Viewer users can authenticate to VNC Server using the same credentials they normally use to log on to their user account on the VNC Server computer.
The system authentication scheme (labelled Windows password, Mac password or UNIX password) is both secure and convenient:
- System administrators often implement rules such as password complexity and ageing in enterprise environments to meet organisational security policies
- Users can authenticate using already-familiar credentials, and don’t have to remember yet another password.
*You can combine this authentication scheme with others in order to specify multi-factor authentication for VNC Server.
Setting up System Authentication
The user account of each prospective VNC Viewer user must be registered with VNC Server. Certain admin groups are pre-registered, to enable connectivity out-of-the-box. This may mean no set up is required, especially under Windows and Mac.
To authenticate to VNC Server, a registered VNC Viewer user can supply the credentials:
- Under any platform, of a local user account (that is, one set up directly on the computer).
- Under Windows and Mac, providing the computer is joined to a domain, of a domain user account (one that is managed by a network service such as Active Directory). Note that prior configuration is required under Linux; see below.
- Under Windows 8 or later, if the local user account is linked to a Microsoft account, the email address and password of the linked Microsoft account.
If you are unsure of the username to use, please see this article.
Setting up domain accounts under Linux
When VNC Server is installed on Linux platforms, a suitable PAM library checking credentials against the local database store only is automatically referenced.
To configure VNC Server to allow authentication with domain accounts, the below steps will enable a basic configuration to achieve this:
/etc/pam.d/vncserver.customwith the below contents, depending on your operating system:
RHEL / CentOS
auth include password-auth
account include password-auth
session include password-auth
/etc/vnc/config.d/common.customand add the line:
- Restart VNC Server
- Connect with VNC Viewer and try authenticating with domain credentials. Note: you may need to qualify usernames with the domain name, for example
If you are unable to authenticate with domain credentials after following these steps, please contact Support.
Setting up domain accounts under Legacy *nix
When VNC Server is installed on legacy *nix platforms, a suitable PAM library checking credentials against the local database store only is automatically referenced. To see which library this is, and also the default authorization and account rules specified, examine the following file:
/etc/pam.conf (see lines starting
*Under AIX, VNC Server uses LAM by default; contact Support for more information. To use PAM, specify the UsePam parameter.
Registering domain accounts with VNC Server
If the domain accounts you are using are not part of any built-in or local groups on the computer running VNC Server, domain accounts must be registered with VNC Server in the standard way, either by:
- Setting the VNC Server Permissions parameter.
- Opening VNC Server’s Options > Users & Permissions page and following these instructions.
You may need to qualify usernames with the domain name, for example
DEV.ACMECORP.COM\johndoe. Note that connecting users may also need to supply the user name qualified in this way too.