I have seen the credentials that you speak of... DomainName\ComputerName$ get
passed into SQL Server, but SQL Server is configured to use Windows
Integrated Security (i.e. Active Directory) and the ComputerName is not
authenticated on Sql Server. I need to find a means of extracting the actual
logged in user on that machine and passing that DomainName\UserName to SQL,
or something similar.
Currently, I'm using impersonating a DomainName\ServiceAccount prior to
accessing SQL Server. This works, as I'd mentioned, but it does not show who
is at the requesting end. When I comment out the Impersonation code, I see
what you had mentioned DomainName\ComputerName$, but like I said, that still
doesn't tell me who is at the requesting end, and ComputerNames do not have
SQL rights in our configuration.
""Charles Wang [MSFT]"" wrote:
Quote:
Hi Sam,
For the account NT AUTHORITY\NETWORK SERVICE, when it tries connecting to
your remote SQL Server instance, the passed network credential will be
DOMAINNAME\COMPUTERNAME$. You can use SQL Profiler (with the event "Audit
Login Failed" checked under Security Audit) to monitor your SQL Server and
you will know which user is trying to connect to your SQL Server.
Best regards,
Charles Wang |