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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745267673a4619556.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