Trouble usings ADSI with IIS

G

Guest

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 with in a test domain and everything went well. This because me user
was an administrator on that machine. Now I want to do the same to a server
that we have in our real domain. Now 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 on that machine
and then connect to the machine 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 it fails to connect and 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 is
returns me the administrator user so the impersonate seems to be working.

I hope somebody has an answer for me.

Thanks

Richard
 
C

Cor Ligthert

Richard,

Will you tell us the relation from your question with the program language
VBNet?

Cor
 

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

Top