Score:0

Multiple Kerberos Providers in Keycloak

rw flag

I have a Keycloak with 2 different LDAP Providers which include Kerberos Authentication. Provider A is on first priority, provider B on second priority. Both provider settings provide their different kerberos realm.

We are talking about two ADs with a domain trust (if that makes any difference).

Logging in with username/password works perfectly fine with both providers.

Logging in with a kerberos ticket only works for provider A on priority 1. Trying to login with a user of provider B triggers a successful ticket granting to the user machine, but fails at keycloak authentication.

WARN  [org.keycloak.federation.kerberos.impl.SPNEGOAuthenticator] (executor-thread-102) SPNEGO login failed: java.security.PrivilegedActionException: GSSException: Failure unspecified at GSS-API level (Mechanism level: Checksum failed)

The keycloak tries to login the user of provider B with kerberos credentials of provider A (priority 1) and fails but does not try provider B anymore.

If provider A and B switch priorities, user B can login using a ticket, but user A fails with the exact same error message.

Is there a way to tell keycloak to try both kerberos realms?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.