MySQL client error 2067 is raised when Kerberos Single-Sign-On cannot find a matching MySQL user for the authenticated principal, blocking the connection.
MySQL Error 2067: CR_KERBEROS_USER_NOT_FOUND signals that the Kerberos principal you authenticated with has no corresponding MySQL account or mapping. Re-run kinit, verify the principal, and create or map the missing MySQL user to clear the error.
SSO user not found, Please perform SSO authentication using kerberos. CR_KERBEROS_USER_NOT_FOUND was added in 8.0.20.
The condition was added in MySQL 8.0.20 and appears only when the connection uses the authentication_kerberos
plugin.
Addressing it quickly restores secure Single-Sign-On workflows and avoids fallback to weaker authentication methods.<\/p>
Mismatched realms or principal suffixes also cause the lookup to fail.
Case sensitivity in the principal string, expired Kerberos tickets, and incorrect plugin_dir
settings round out typical culprits.<\/p>
klist && kinit user@REALM
. Then ensure a MySQL account exists for the principal or mapping. Use CREATE USER 'user@REALM' IDENTIFIED VIA authentication_kerberos
or define a Kerberos_principal
mapping rule.<\/p>If the account exists, verify host patterns, realm names, and plugin configuration. Refresh the MySQL privilege tables with FLUSH PRIVILEGES
and reconnect.
These steps resolve over 90 percent of reported cases.<\/p>
In multi-realm environments the principal may include a realm that MySQL is not configured to recognize. Align the default_realm
in krb5.conf
with MySQL's authentication_kerberos_service_principal
variable.<\/p>
Monitor the error log for 2067 entries and alert maintainers immediately.<\/p>
Using Galaxy's modern SQL editor, teams can store and version the exact CREATE USER
statements, ensuring consistent, peer-reviewed user setup across environments.<\/p>
ER_KERBEROS_CREATE_USER_FAILED
occurs when the server cannot create a Kerberos-based user. Check privileges and plugin availability.<\/p>CR_KERBEROS_TICKET_EXPIRED
indicates an outdated ticket rather than a missing user. Renew tickets with kinit
to resolve.<\/p>
.
CREATE USER
scripts, enforces connection profiles, and flags authentication errors instantly, reducing misconfiguration risk.<\/p>