PC Review


Reply
Thread Tools Rate Thread

Associating application usernames with database connections

 
 
Chris Berube
Guest
Posts: n/a
 
      9th Sep 2009
I have a question regarding identity propagation and connection pooling.
Where a user logs into an ASP.NET web page or service, access to the database
is done using connections that come from a pool. All these connections are
already connected to the database and they all use the same credentials. I
need a way to get the client's original username (at the app server level)
and IP address, or a way to associate that information with the actual
database connection. For example, I want to do a SET CONTEXT SQL command
passing a string which I can later use from within the database - either in
stored procedures or at least for recording in the audit trail. Any ideas on
how to accomplish this? Ideally, I am looking for a hook where I can register
a callout to my code that gets called every time a connection is retrieved
from the pool. Is this even possible assuming I have no control over the web
pages or services? Are there server wide hooks that can be used to retrieve
this information?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Associating a file extension to an application MJB Microsoft Dot NET Framework Forms 3 28th Dec 2005 03:58 PM
Associating a file extension to an application MJB Microsoft C# .NET 3 28th Dec 2005 03:58 PM
Associating a file extension to an application MJB Microsoft VB .NET 3 28th Dec 2005 03:58 PM
Associating more than one icon to an application kurotsuke Microsoft C# .NET 1 25th Jun 2005 02:18 PM
associating an application to open a file Joanne Microsoft Outlook 1 17th Feb 2004 10:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 PM.