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 / Security / March 2008

Tip: Looking for answers? Try searching our database.

Impersonation necessary while using Kerberos Delegation?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ralf Steinstraesser - 13 Mar 2008 16:11 GMT
Hi,

I want my webservice to open a database connection, in this case an
AdoMDConnection, using the user credentials via Kerberos delegation. Now I am
wondering, if I need to code any impersonation into the service before
opening the connection, or if that is done automatically?

To elaborate on that... these are the identities of the ServiceAccount and
the User querying the service: System.Security.Principal.WindowsIdentity
(Name: BC\ServiceAccount,AuthenticationType: Kerberos,ImpersonationLevel:
None)
Thread.CurrentPrincipal.Identity (Name: BC\User,AuthenticationType:
Kerberos,ImpersonationLevel: Identification)

If I would simply open the connection without impersonation, the connection
would be opened with the ServiceAccount identity, which is not what I want.
On the other hand mayby the ConnectionString attribute "Impersonation
Level=Delegate" would make impersonation unnecessary...

I am experimenting with the following ConnectionString parameters:
"...Integrated Security=SSPI;SSPI = Kerberos;Impersonation Level=Delegate..."

The delegation settings and SPNs are all defined in AD, I believe 8-}

Any help appreciated here.

Signature

Dipl.-Ing. Ralf Steinstraesser
Software Architekt
Bissantz & Company GmbH

Tiago Halm - 15 Mar 2008 13:20 GMT
You can do it declaratively or programatically. See here:
http://msdn2.microsoft.com/en-us/library/ms730088.aspx

The easiest is declaratively, the safest and secure is programatically. You
should opt for the second.

Tiago Halm

> Hi,
>
[quoted text clipped - 25 lines]
>
> Any help appreciated here.

Rate this thread:







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.