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
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