WebSphere Tutorial · Traditional WebSphere Application Server · Lesson 17 of 23

Security in Traditional WAS

Administrative and application security in traditional WAS: global security, user registries, LTPA single sign-on and SSL configuration.

Members can save this page, take notes and track progress. See membership · Sign in

Global security

Administrative security protects the admin console and wsadmin; application security enforces the roles applications declare. Both use a user registry: federated repositories (combining LDAP and file-based users), standalone LDAP, the local OS, or a custom registry.

LTPA and single sign-on

After login, the server issues an LtpaToken2 cookie, encrypted and signed with the cell's LTPA keys. Other servers sharing those keys and the same registry trust it, so users don't log in again. Tokens expire (120 minutes by default). Different cells (or Liberty servers) can share SSO only if they share keys: a frequent cause of "users keep getting logged out" after one side regenerates its keys.

SSL

Keystores and truststores, SSL configurations per endpoint, and certificate expiration monitoring are managed in SSL certificate and key management. Don't forget IBM HTTP Server's plug-in keystore (plugin-key.kdb), which must trust the application servers' certificates.

Why SSO breaks when LTPA keys differ (signature simulation)Try it yourself
import hashlib, hmac

def token(user, keys):
    return user + "." + hmac.new(keys.encode(), user.encode(), hashlib.sha256).hexdigest()[:12]

def trusts(server_keys, tok):
    user = tok.split(".")[0]
    return hmac.compare_digest(tok, token(user, server_keys))

cell_a, cell_b_same, cell_b_new = "keys-v1", "keys-v1", "keys-v2"
t = token("ana", cell_a)
print("cell B with the same LTPA keys trusts the token:", trusts(cell_b_same, t))
print("cell B after regenerating its keys trusts it:  ", trusts(cell_b_new, t))

Output

cell B with the same LTPA keys trusts the token: True
cell B after regenerating its keys trusts it:   False

Test yourself

Users are logged out when moving between two cells after a security change. Likely cause?

  1. The heap is too small
  2. The cells no longer share the same LTPA keys
  3. plugin-cfg.xml is stale
  4. Parent-first class loading
Show answer

Answer: The cells no longer share the same LTPA keys

SSO needs matching LTPA keys and a compatible registry.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake