My Oracle Support Banner

Unable to find LoginModule class: com.sun.security.auth.module.Krb5LoginModule When Configuring Custom Kerberos Login Module via JAAS Config File (Doc ID 2797357.1)

Last updated on AUGUST 05, 2021

Applies to:

JDBC - Version 18.3 and later
Information in this document applies to any platform.

Symptoms

Unable to use com.sun.security.auth.module.Krb5LoginModule with ojdbc8.jar when connecting to Oracle DB using Kerberos based authentication.

JDBC Thin driver 18.3 ojdbc8.jar always uses com.sun.security.auth.module.Krb5LoginModule for Kerberos connection.

It does not use the custom login module even after it has been configured:

-Djava.security.auth.login.config=/data/.java.login.config

 

Exception trace:

java.sql.SQLRecoverableException: IO Error: The service in process is not supported. unable to find LoginModule class: com.sun.security.auth.module.Krb5LoginModule

        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:797)

        at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:778)

        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)

        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:700)

        at java.sql.DriverManager.getConnection(DriverManager.java:675)

        at java.sql.DriverManager.getConnection(DriverManager.java:219)

 

 

 

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.