G
Guest
Hello,
Background: I have created some extensive logic in my databases which take
the credentials of the logged on user and grant appropriate data through a
combination of views and AD group membership. This works great by using the
original caller's identity however, my boss wants me to better leverage
connection pooling.
Proposal: The proposal was that we determine the group membership, then
impersonate the appropriate domain user account (which we'd have several for
each application each with different access levels), and continue with the
connection using SSPI. (We are trying to transition to using Windows
accounts only, so using SQL accounts are out of the question at this time).
Problem: (1) We only want to impersonate the user for the connection to the
database, the rest of each application needs to run under the credentials of
the original caller. (2) The applications are already created, is there a
means to override the open method of the SQLConnection object to fullfill
step 1?
I appreciate any feedback.
Background: I have created some extensive logic in my databases which take
the credentials of the logged on user and grant appropriate data through a
combination of views and AD group membership. This works great by using the
original caller's identity however, my boss wants me to better leverage
connection pooling.
Proposal: The proposal was that we determine the group membership, then
impersonate the appropriate domain user account (which we'd have several for
each application each with different access levels), and continue with the
connection using SSPI. (We are trying to transition to using Windows
accounts only, so using SQL accounts are out of the question at this time).
Problem: (1) We only want to impersonate the user for the connection to the
database, the rest of each application needs to run under the credentials of
the original caller. (2) The applications are already created, is there a
means to override the open method of the SQLConnection object to fullfill
step 1?
I appreciate any feedback.