Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

ConnectionString to SQL Server

$
0
0

In .NET, is it possible to pass a Windows Account username / password to SQL Server? like this

String connectionString = @"Server=ServerName123;Database=DBName123;User Id=DomainName\AccountName;Password=xxxxxx;";

The goal is to use Active Directory as the source of truth for authentication, not SQL Server.

We use PasswordVault AIM (Application Identity Management) agent installed on web server to fetch password programatically at runtime. Hence, the connectionString will be built on fly.

Benefit of PasswordVault is that it can initiate password rotation automatically against AD. AIM agent can then obtain passsword on demand.

The problem we are facing seem related to the fact that AD account is not allowed in the connectionString to SQL Server. And it only accept SQL Login, which defeats the purpose of having a single source of truth.

Anyone can confirm if my assumption here is correct?

Thanks,

David.



Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>