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 / .NET SDK / May 2005

Tip: Looking for answers? Try searching our database.

Connecting to IIS using ADSI

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard Ruben - 27 Apr 2005 07:48 GMT
Hi
I hope somebody can help me because I really don’t know how to solve this
problem.
I want to do the following.

We have an IIS server that I want to administrate using ADSI. I did some
testing in a test domain and everything went well. This because me user
was an administrator on the server.

Now I want to do the same on a server that we have in our real domain.
My user is not an administrator on that machine.
I have been reading Q218497 where they explain that calling the API
LogonUser I can impersonate an user that is an administrator and then
connect to the server with ADSI.

That is exactly what i tried. But it doesn’t work. I call the LogonUser with
LogonType LOGON32_LOGON_INTERACTIVE so that I can make calls to remote
systems.
But when connecting to the IIS it keeps throwing an "Access denied". I
tried several ways to impersonate the user, but none of them worked.
When calling the System.Security.Principal.WindowsIdentity.GetCurrent.Name it
returns me the administrator user so the impersonate seems to be working.

I hope somebody has an answer for me.

Thanks

Richard
Willy Denoyette [MVP] - 01 May 2005 21:17 GMT
You don't need to impersonate an Interactive user, this is only needed for
interactive logons.
And you need to impersonate a local administrator (loal means the IIS
server) or a domain administrator for this to work.

Willy.

> Hi
> I hope somebody can help me because I really don’t know how to solve
[quoted text clipped - 27 lines]
>
> Richard

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.