Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2007 Apr : Winnt library when used in service fails on NTLM.

www.cryer.info
Managed Newsgroup Archive

Winnt library when used in service fails on NTLM.

Subject:Winnt library when used in service fails on NTLM.
Posted by:vrgopakum..@gmail.com
Date:10 Apr 2007 06:34:53

hi,
    I am using a ISA Proxyserver which uses NTLM. My client program
uses wininet library. and its working as an application. but when its
run as a service, i can see NTLM packets are going without Hostname
and domain and its failing on HttpSendRequest with Timed out.  When i
use LogonUser and ImpersonateLogedonuser, Its working even in service.
But i cannot take a username and password to run LogonUser. Is there
any good idea to do this ?
How can i impersonate to loged on user without taking username and
password of current system? If i go for WinHTTP will it work ?  Thank
you.

Replies:

www.cryer.info
Managed Newsgroup Archive