Can someone help me in which version of JTDS jar , the kerberos support was added? I am checking through many posts but still I could not get a clear info.
Also if possible please post a sample code of kerberos in JTDS. Appreciating your help! Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Why would you want to use any version older than 1.3.1? Anyway, the Kerberos readme was added in 2.x and since this is not yet available it was backported to 1.3.x here: https://sourceforge.net/p/jtds/code/1236/ which is not included in 1.3.0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Debug is true storeKey true useTicketCache true useKeyTab true doNotPrompt true ticketCache is null isInitiator true KeyTab is C:/Users/XYZ/KerberosConfDir/app1.keytab refreshKrb5Config is false principal is http/annapoorani.mse2.com tryFirstPass is false useFirstPass is false storePass is false clearPass is false
Acquire TGT from Cache
Principal is http/user.domain.com@DOMAIN.COM
null credentials from Ticket Cache [Krb5LoginModule] authentication failed
Pre-authentication information was invalid (24)
java.sql.SQLException: I/O Error: GSS Failed: No valid credentials provided (Mechanism level: Attempt to obtain new INITIATE credentials failed! (null))
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:654)
at net.sourceforge.jtds.jdbc.JtdsConnection.<init>(JtdsConnection.java:371)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
at JDBCKerberosTest.main(JDBCKerberosTest.java:84)
Caused by: java.io.IOException: GSS Failed: No valid credentials provided (Mechanism level: Attempt to obtain new INITIATE credentials failed! (null))
at net.sourceforge.jtds.jdbc.TdsCore.sendMSLoginPkt(TdsCore.java:1976)
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:617)
... 3 more</init>
Please help me on this
Last edit: AP 2019-04-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can someone help me in which version of JTDS jar , the kerberos support was added? I am checking through many posts but still I could not get a clear info.
Also if possible please post a sample code of kerberos in JTDS. Appreciating your help! Thanks
Why would you want to use any version older than 1.3.1? Anyway, the Kerberos readme was added in 2.x and since this is not yet available it was backported to 1.3.x here: https://sourceforge.net/p/jtds/code/1236/ which is not included in 1.3.0
I am using below code with jtds-1.3.1.jar and getting some error
Please help me on this
Last edit: AP 2019-04-05