Hello,
I have added Kerberos (Integrated Windows Authentication) support to jTDS and am including the patch against HEAD, hopefully for inclusion in a future jTDS release.
The code is written to take advantage of native GSS with Java 6. To use this, simply define the system property
sun.security.jgss.native=true and omit the username and password from the JDBC URL. If the current user has valid Kerberos credentials for the domain that the server is in (or a trusted kerberos realm), those
kerberos credentials will be used to log into the database.
This code was written and has been tested with Sun Java 1.6 on Linux w/ Heimdal Kerberos 1.0.1 configured for a Windows Server 2003 Active Directory-based Kerberos realm. Authentication works fine against
both SQL Server 2000 and 2005.
Cheers,
-Dino
ddz@theta44.org
Anonymous
Patch against jTDS HEAD (20080505)
Thank you for providing that patch. I've applied it to the current code base.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Hi,
Has it been integrated into JTDS 1.2.4?
I set the system property "sun.security.jgss.native=true" but still get "java.sql.SQLException: Single-Sign-On is only supported on Windows. Please specify a user name."