Hi Christof It's actually my test machine , a win2k3 server. I've not locked it down though maybe an update did. I'm running a web service which is a .net calling a VFP dll. The DLL needs to look at data on another machine so what I was trying to do was impersonate. So the dll is trying to impersonate this administrator, in this case for test purposes, and I'm using LogonUser and Impersonate. But I'm not getting past LogonUser because the call fails with Username or Password incorrect. I have also tried making a user and having the pool use that name but then I get Service Unavailable on the browser even looking for a text file. I'm not sure how I can use RunAs from a dll. Al
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Christof Wollenhaupt Sent: 28 October 2009 18:54 To: [email protected] Subject: RE: logonuser() Hi Allen, > Ok got some error code in and logonuser returns 1326, username or password is wrong. Yet I don't think so. Any ideas please Al Can you log on with the RUNAS command? The administrator might have locked down the account so that it can't log on as a different user, on a different domain, or on a remote machine. -- Christof _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/005001ca57fd$14f05e80$3ed11b...@com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

