通过Linux上的Windows身份验证连接到AWS上的MSSQL DB

时间:2020-11-06 10:01:16

标签: sql-server linux spring-boot kerberos windows-authentication

我创建了一个新的AD用户,该用户已与数据库集成以进行身份​​验证。该数据库托管在AWS上,我能够使用MSSQL进行连接,但是我想通过我的代码来实现。我已经进行了一些研发,并且在所有地方都提到了使用javakerberos进行身份验证的内容。我已经创建了连接字符串,例如-

    table.app-table{
        border-collapse: separate;
        border-spacing: 0rem 0.5rem;
    }
    table.app-table thead tr.border-row the,
    table.app-table tbody tr.border-row td,
    table.app-table tbody tr.border-row th{
        border-top: 1px solid #EAEAEA;
        border-bottom: 1px solid #EAEAEA;
        vertical-align: middle;
        white-space: nowrap;
        font-size: 0.875rem;
    }

    table.app-table thead tr.border-row th:first-child,
    table.app-table tbody tr.border-row td:first-child{
        border-left: 1px solid #EAEAEA;
    }

    table.app-table thead tr.border-row th:last-child,
    table.app-table tbody tr.border-row td:last-child{
        border-right: 1px solid #EAEAEA;
    }

这是我在托管应用程序的Linux机器上收到的错误-

spring.datasource.url=jdbc:sqlserver://mssql.host.com:1433;databaseName=db_name;integratedSecurity=true;authenticationScheme=JavaKerberos
spring.datasource.username=my_user

要使其成功,接下来需要执行哪些步骤?

0 个答案:

没有答案