admin管理员组文章数量:1417469
I am able to connect from ORQA server to DB server with ORQA tool, using below jdbc connection string with GMSA account
jdbc:sqlserver://<dbserver>:<port>;databaseName=<DBname>;integratedSecurity=true;encryption=true;trustServerCertificate=true;Persist Security Info=false;MultiSubnetFailover=true
Username parameter: GMSA$
Using azure devops pipeline, using self hosted agent from orqa machine, using the below connection string, I am getting error as below
<parameter name="connectionString" defaultValue="jdbc:sqlserver://dbserver:port;databaseName=dbname;encryption=true;trustServerCertificate=true;Persist Security Info=false;username=DOMAIN\GMSA$"/>
ERROR: test_GMSA.task:1: Login failed for user 'DOMAIN\GMSA$'
I am able to connect from ORQA server to DB server with ORQA tool, using below jdbc connection string with GMSA account
jdbc:sqlserver://<dbserver>:<port>;databaseName=<DBname>;integratedSecurity=true;encryption=true;trustServerCertificate=true;Persist Security Info=false;MultiSubnetFailover=true
Username parameter: GMSA$
Using azure devops pipeline, using self hosted agent from orqa machine, using the below connection string, I am getting error as below
<parameter name="connectionString" defaultValue="jdbc:sqlserver://dbserver:port;databaseName=dbname;encryption=true;trustServerCertificate=true;Persist Security Info=false;username=DOMAIN\GMSA$"/>
Share Improve this question edited Feb 1 at 9:09 Dale K 27.5k15 gold badges58 silver badges83 bronze badges asked Jan 31 at 10:37 Anusha MAnusha M 531 gold badge1 silver badge6 bronze badges 9 | Show 4 more commentsERROR: test_GMSA.task:1: Login failed for user 'DOMAIN\GMSA$'
1 Answer
Reset to default 1Connection string should be
jdbc:sqlserver://dbserver:port;databaseName=dbname;encryption=true;trustServerCertificate=true;integratedSecurity=true;
https://learn.microsoft/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver16
Then run the pipeline agent as a Windows Service configured to run under the GMSA.
本文标签: azureUsing GMSA to connect SQL ServerStack Overflow
版权声明:本文标题:azure - Using GMSA to connect SQL Server - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745267673a2650701.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
username=DOMAIN\GMSA$
? You can't pass domain credentials like that; it's either SQL Authentication (with a username and password), or a trusted connection (and no credentials passed in the connection string). – Thom A Commented Jan 31 at 10:39