Kerberos Authentication
Kerberos is a computer-network authentication protocol that allows nodes communicating over a non-secure network to prove their identity to one another in a secure manner. For details, visit https://web.mit.edu/kerberos.
AD is a database that stores network objects, allowing administrators and users to search for required information.
Service Principal Name (SPN) is a unique identifier of a service instance.
It associates a service instance with a service account during Kerberos authentication. SPNs must be registered for the server under a built-in computer account or user account. For built-in accounts, SPNs are automatically registered. To run services using a domain account, manually register an SPN for the account.
This section describes how to integrate Kerberos with OneAccess.
The procedure for accessing the user portal on a PC is used for illustration. Select and configure an application that meets your service requirements.
Configuration process

Setting Up an AD Server
Windows Server 2012 R2 is used as an example to describe how to set up a domain server. For details, see Setting Up an AD Server.
Creating an AD User
Create an AD user in the established AD domain.
- Go to the AD management center.
- Right-click the target domain, choose New > User, enter the user information, and click OK.
To prevent login exceptions, configure the user with unlimited password validity.
Configuring the AD server
- Generate an SPN in the AD server.
In the DOS window of the AD server, run the "setspn -A HTTP/{Tenant domain name} {AD username}" command, for example, setspn -A HTTP/xxxxxx.huaweioneaccess.com Appointer.
- Generate a keytab file in the AD server.
In the DOS window of the AD server, run the "ktpass /out {Keytab file path} /mapuser {AD username} /princ HTTPS/{Tenant domain name}@{AD domain name} /pass {AD user password} /ptype KRB5_NT_PRINCIPAL /crypto All" command, for example, ktpass /out c:\Appointer.keytab /mapuser Appointer /princ HTTPS/xxxxxx.huaweioneaccess.com@ONEACCESS.COM /pass {AD user password} /ptype KRB5_NT_PRINCIPAL /crypto All.

- Configure an appointment in the AD server.
- Select the user created in Creating an AD User, right-click Properties, and configure an appointment.
- If you choose to only trust this user for appointing a service, add the service you want to appoint.
Configuring the Client Browser
- Internet Explorer
Open Internet Explorer, choose Tools > Internet options > Security > Local intranet > Sites > Advanced, and add the website https://{Tenant domain name}.

- Google Chrome
Google Chrome shares the configurations of Internet Explorer. After configuring Internet Explorer, directly use Google Chrome without additional configurations.
- Mozilla Firefox
- Open the Firefox browser, enter about:config in the address box, and click Accept the Risk and Continue.

- Enter network.negotiate-auth-trusted-uris and set the value to https://{Tenant domain name}.

- Open the Firefox browser, enter about:config in the address box, and click Accept the Risk and Continue.
Adding a Kerberos Authentication Provider
- Log in to the administrator portal.
- In the top navigation pane, choose Authentication > Authentication Providers, and click Kerberos. On the Kerberos Authentication Providers page, click Add Authentication Provider in the upper right and set the parameters. Figure 1 Adding an authentication provider
Figure 2 Configuring parameters
Table 1 Configuration parameters Parameter
Description
* Display Name
Display name of the authentication provider, for example, Kerberos.
* AD Domain
AD domain name in upper case, for example, ONEACCESS.COM.
* Keytab File
Select the file generated in 2.
* Related User Attribute
Unique attribute, for example, user ID, to associate with a system user.
No User Associated
Indicates that the login fails if no user is associated during authentication.
- In the top navigation pane, choose Users > Organizations and Users. Select the target organization, click Create User, and enter the user information. Ensure that the username is the same as that of the AD domain account.

Enabling Kerberos Authentication
- Log in to the administrator portal.
- In the top navigation pane, choose Resources > Applications. Then select UserCenter in the Pre-integrated Applications section.
- On the application information page, click the application icon.
- On the application details page, choose Login Settings > Web Applications, enable Kerberos authentication, and select the authentication provider added in Adding a Kerberos Authentication Provider.
Once enabled, Kerberos authentication is preferentially used when users access the user portal. To use other authentication modes, disable Kerberos authentication first.

Logging In to the User Portal Through Kerberos Authentication
- Log in to the AD domain.
- Access the user portal as the user who logs in to the AD domain in 1, using Google Chrome, Internet Explorer, or Firefox in password-free mode.
Last Article: LDAP Authentication
Next Article: eteams Authentication
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.