Skip to main content

Hi,

 

I am getting below error when connecting to mongoDB instance using kerberos.

Failed to authenticate database 'instrument', Cannot invoke "XcoreXmongodbX220X8326.qff.c(String)" because the return value of "XcoreXmongodbX220X8326.igf.a()" is null.

 

connection string used: jdbc:mongodb:AuthScheme=GSSAPI;Server=wh-171d272d46.svr.us.jpmchase.net;Port=27040;UseSSL=True;KerberosRealm=exchad.jpmchase.net;KerberosTicketCache=C:\Users\R654476\krb5cc_R654476;SSLServerCert=*;ReplicaSet=wh-1761a58f43.svr.us.jpmchase.net:27040,wh-113139d5b5.svr.us.jpmchase.net:27040;logFile=I:\OMNI-DB2-CERTIFICATES\mongodb-driver.log;Verbosity=5;AuthDatabase=%24external;readPreference=primary;Database=instrument;kerberosServiceRealm=exchad.jpmchase.net

 

driver class name: cdata.jdbc.mongodb.MongoDBDriver

Hi @skuchibhotla,

 

Based on the connection string provided, it seems like you are missing some connection properties that are required in order to authenticate utilizing Kerberos, such as: KerberosKDCKerberosSPNUser and Password.

 

Kindly refer to this documentation to make sure that you are authenticating correctly: https://cdn.cdata.com/help/DGJ/jdbc/RSBMongodb_p_AuthScheme.htm#authenticating-with-kerberos


Reply