Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 从Linux通过Windows身份验证连接到AWS上的MSSQL DB_Sql Server_Linux_Spring Boot_Kerberos_Windows Authentication - Fatal编程技术网

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

Sql server 从Linux通过Windows身份验证连接到AWS上的MSSQL DB,sql-server,linux,spring-boot,kerberos,windows-authentication,Sql Server,Linux,Spring Boot,Kerberos,Windows Authentication,我已经创建了一个新的广告用户,并将其与数据库集成以进行身份验证。数据库托管在AWS上&我可以使用MSSQL进行连接,但我想通过我的代码来实现这一点。我已经做了一些研发工作,并且到处提到使用javakerberos进行身份验证。我创建了连接字符串,如- spring.datasource.url=jdbc:sqlserver://mssql.host.com:1433;databaseName=db_name;integratedSecurity=true;authenticationScheme

我已经创建了一个新的广告用户,并将其与数据库集成以进行身份验证。数据库托管在AWS上&我可以使用MSSQL进行连接,但我想通过我的代码来实现这一点。我已经做了一些研发工作,并且到处提到使用javakerberos进行身份验证。我创建了连接字符串,如-

spring.datasource.url=jdbc:sqlserver://mssql.host.com:1433;databaseName=db_name;integratedSecurity=true;authenticationScheme=JavaKerberos
spring.datasource.username=my_user
这是我在承载应用程序的linux机器上收到的错误-

ERROR o.a.tomcat.jdbc.pool.ConnectionPool
                                 - Unable to create initial connections of pool.
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot login with Kerberos principal my_user, check your credentials. Kerberos Login failed: Integrated authentication failed. ClientConnectionId:2ee0b176-ebf7-46fe-91af-b16dead75108 due to javax.security.auth.login.LoginException (connect timed out)
        at com.microsoft.sqlserver.jdbc.KerbAuthentication.intAuthInit(KerbAuthentication.java:100)
        at com.microsoft.sqlserver.jdbc.KerbAuthentication.generateClientContext(KerbAuthentication.java:207)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:4979)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3988)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$000(SQLServerConnection.java:85)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:3932)
我接下来需要执行哪些步骤才能使其成功