Kerberos SSO Preparation
Kerberos SSO lets OL Terminal sign a managed user in to IBM i without asking the user to type the IBM i password in the browser. The user's identity still has to come from a trusted source, such as an external JWT or trusted headers configured in User Management.
This topic is for administrators and IT teams that prepare the customer environment before OL Terminal is configured for Kerberos SSO.
How the sign-in flow works
- A trusted front end, portal, or reverse proxy sends the user to OL Terminal and supplies the username by JWT or trusted headers.
- OL Terminal resolves that external identity for the selected AS/400 connection.
- Kerberos S4U uses the configured service account and keytab to request a ticket for that user.
- OL Terminal uses the ticket to sign in to IBM i for the terminal session.
The user still needs to be allowed in OL Terminal user management, and the IBM i user or identity mapping must exist.
Information to prepare
Prepare these files and values before rollout:
krb5.conffor the customer Kerberos realm.- A service keytab, such as
olterminal-svc.keytab. - The Active Directory realm and domain names.
- KDC hostnames and ports.
- The service principal name used for OL Terminal.
- IBM i hostnames and the IBM i realm or domain details.
- The username format that OL Terminal receives from JWT or trusted headers.
- The mapping between the external username and the IBM i user profile.
Treat the keytab as a secret. Anyone who has the keytab can act as the service account it contains.
Active Directory preparation
Ask the Active Directory administrator to create or choose the service account that OL Terminal will use for Kerberos delegation. Register the service principal name for OL Terminal and generate a keytab for that principal using the encryption types approved by your organization.
Confirm that:
- The service account is dedicated to OL Terminal or to the approved terminal SSO use case.
- The service principal name matches the principal in the keytab.
- The keytab can be rotated when required.
- The realm, KDCs, and DNS names in
krb5.confmatch the customer environment. - Time synchronization is working between OL Terminal, Active Directory, and IBM i.
IBM i preparation
Ask the IBM i administrator to confirm the IBM i Kerberos and identity mapping configuration. The exact IBM i steps depend on the customer environment, but the result should let Kerberos tickets for the resolved user map to the correct IBM i user profile.
Confirm that:
- IBM i can trust the Kerberos realm used by Active Directory.
- Enterprise Identity Mapping, or the customer's equivalent mapping, links Kerberos identities to IBM i profiles.
- The target IBM i profiles exist and are enabled.
- The user has permission to start the required terminal application.
- Test users can complete a sign-on in a controlled environment before production rollout.
OL Terminal configuration
In OL Terminal, configure the AS/400 connection and open User Management for that named connection.
- Turn on Require external identity.
- Choose External JWT or Trusted headers as the identity source.
- Configure the claim name or header name that carries the username.
- Add or import the managed users for that connection.
- Configure the Kerberos files and service account settings in the deployment according to the install method.
- Test with a user whose Active Directory identity, OL Terminal managed user, and IBM i mapping are all prepared.
If you use trusted headers, the reverse proxy must strip any client-supplied copy of the identity and shared-secret headers before adding its own. The OL Terminal backend should not be reachable except through that trusted proxy.
If you use an external JWT, use it only behind a trusted front end that issues the token and protects the OL Terminal backend from direct access.
Security checklist
- Transfer the keytab through a secure channel only.
- Store the keytab as a protected deployment secret.
- Limit file access to the OL Terminal service account and trusted administrators.
- Rotate the keytab according to the organization's policy.
- Verify that test users cannot impersonate other users by changing a browser parameter, header, or token.
- Review OL Terminal security audit log entries for authentication failures and rejected terminal sessions.
- Remove temporary test files and credentials after validation.
Troubleshooting
- User identity is missing: confirm the JWT claim or trusted header reaches OL Terminal and that user management is enabled for the selected connection.
- User is refused by OL Terminal: confirm the managed user exists, is enabled, and belongs to the named AS/400 connection being launched.
- Kerberos ticket cannot be obtained: check the service principal, keytab, realm, KDC reachability, clock synchronization, and encryption types.
- IBM i sign-on is refused: confirm IBM i identity mapping, user profile status, and host permissions.
- A browser tab starts the wrong host: confirm the launch URL carries the intended connection, or set the browser favorite and administrator default connection as needed.
Prepare Active Directory and IBM i details for Kerberos SSO to AS/400 sessions.