Application Security Context

J

Jerry Camel

This is probably a newbie type of question, but how / where can you specify
the security context in which server side code runs? I need to do some
active directory lookups and such that the current user might not have
access to. Is there a way to do this like there is for a windows service?
Thanks.

Jerry
 
T

Tommy

1. You can specify the request to run under a specific user using the Web.Config

<identity impersonate="true"
userName="domain1\user1"
password="password1"/>

2. You can dynamically impersonate into a different user at run-time, access the
active directory, and revert back to the original user.
Use the "Impersonate()" method in the
"System.Security.Principal.WindowsIdentity" class.

3. You can create a component that access the active directory. Run this
component in COM+ under a specify user. You can then have the ASP.NET page
call this component.

Tommy,
 
J

Jerry Camel

Great. Thanks. Exactly what I needed.

Tommy said:
1. You can specify the request to run under a specific user using the Web.Config

<identity impersonate="true"
userName="domain1\user1"
password="password1"/>

2. You can dynamically impersonate into a different user at run-time, access the
active directory, and revert back to the original user.
Use the "Impersonate()" method in the
"System.Security.Principal.WindowsIdentity" class.

3. You can create a component that access the active directory. Run this
component in COM+ under a specify user. You can then have the ASP.NET page
call this component.

Tommy,

"Jerry Camel" <[email protected]> wrote in message
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top