moemeelaung wrote:
Hi ASP/Windows experts out there
I really need help with this Impersonate function.
I have machine A and B. A hosts my ASP page which is to create a user
account on the machine B. The machine are not on Domain and not in AD
environment.
I userstand the the web page from A is to create a user account on B
should use Impersonate function to log in as the user from the machine
B which has the Admin rights. So I did that.. But It does not seems to
be working. I got this famous 80004005 error. I know it's something to
do with permissions rights but I couldn't think of anymore. I have
tried so many options.
I'd be much appreciated if you could at least help me out with my
problem.
Thanks and Regards
Moe
--
moemeelaung
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
Hi moemeelaung,
AFAIK, the Impersonate - Function runs the ASP files on the current
machine with the new user context.
If you are not working in a domain / AD environment, machine A does not
allow a user from machine B to be logged onto machine A
For example:
machine A: Users: IUSR_A,foo
machine B: Users: bar
--> You cannot impersonate user "bar" onto machine A, he is unknown to
machine A
In this situation it will be easiest to create two identical users (same
username AND password) on both machines, this should allow you to
impersonate as user on machine A that then has the appropriate rights on
machine B. (to enumerate or create new users).
Example:
machine A: Users: IUSR_A,foo
machine B: Users: foo
--> You can impersonate user "foo" onto machine A, this user has rights
on machine B (same username/password).
I have not tried this in an ASP environment, but with "normal" = logged
on Users, this works perfectly.
HTH
Gottfried