Authenticating to a SQL Server instance as a Windows User via JDBC

后端 未结 9 1543
太阳男子
太阳男子 2020-12-06 06:37

I\'m having to support multiple database types for my tenant-enabled web application. Among others, I have successfully supported Microsoft\'s SQL Server, by using the net.s

9条回答
  •  清歌不尽
    2020-12-06 07:17

    The main problem is the windows authentication with a full java solution (no DLL). So you could use one of the libs below:

    • NTLM authentication: http://ioplex.com/jespa.html
    • spring based Kerberos authentication: http://projects.spring.io/spring-security-kerberos/
    • another integrated windows auth lib is SPNEGO (don't know much about this one)

    So once your app is authenticated with one of the lib above, your JDBC should run fine using "integratedSecurity=true;" and if needed "authenticationScheme=JavaKerberos".

提交回复
热议问题