Menu

#98 Native GSS/Kerberos support for jTDS using Java 6

closed
momo
None
5
2012-08-15
2008-05-05
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    Patch against jTDS HEAD (20080505)

     
  • momo

    momo - 2009-07-24

    Thank you for providing that patch. I've applied it to the current code base.

     
  • Anonymous

    Anonymous - 2012-02-07

    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."

     

Anonymous
Anonymous

Add attachments
Cancel