Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / December 2003

Tip: Looking for answers? Try searching our database.

ServicedComponent impersonation level is always Anonymous

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erik Runeson - 09 Dec 2003 14:45 GMT
I have a serviced component, and I want it to be able to do some stuff
on behalf of the client using impersonation. However, no matter what I
do, the Impersonation level of the SecurityIdentity in the
SecurityCallContext is always "Anonymous".

I have set up the component with Server activation, and access control
for both application and components. The ImpersonationLevelOption is
set to Delegate. I've tried running the COM+ application in several
different user user contexts, including myself and the system
administrator, but it is always the same.

Does anyone know what is required to make the context allow
impersonation?

E.g. when I do:

SecurityIdentity id = SecurityCallContext.CurrentCall.DirectCaller;
or
SecurityIdentity id = SecurityCallContext.CurrentCall.OriginalCaller;

I get the properties:

id.ImpersonationLevel = Anonymous
id.AccountName = MYDOMAIN\myname
id.AuthenticationService = 10
id.AuthenticationLevel = Privacy

I want, of course, the Impersonation level to be "Impersonate" or
"Delegate".

I'm accessing the component by using Activator, like this:

Type t = Type.GetTypeFromCLSID( myComponentGuid, serverName );
IMyComponent myComponent = (IMyComponent) Activator.CreateInstance( t
);
Any help would be greatly appreciated.
Brad - 10 Dec 2003 21:57 GMT
Erik,
Please review the following article & let me know if you have any questions:

283201 HOWTO: Use Delegation in Windows 2000 with COM+
http://support.microsoft.com/?id=283201

- Brad

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.