Problem using NetworkCredentials

G

Guest

An application running on Windows CE tries to retrieve data from a web service on IIS using Windows integrated authentication in Directory Security. It does not work, but it does work if the application run on Windows XP. I don't know the reason and I wonder if this problem is related to .NET Compact Framework. Any help will be welcome! The code is shown below
PsionApplication.consultia.marcos.Service1 ws = new PsionApplication.consultia.marcos.Service1()
NetworkCredential nw = new NetworkCredential("marcos","csadmin")
System.Uri u = new System.Uri(ws.Url.ToString())
ws.Credentials = nw.GetCredential(u,"digest")
MessageBox.Show(ws.HelloWorld())
 
A

Alex Feinman [MVP]

I don't believe NTLM auth is a part of CF 1.0. Try switching your web
service to use basic auth.

--
Alex Feinman
---
Visit http://www.opennetcf.org
mfern said:
An application running on Windows CE tries to retrieve data from a web
service on IIS using Windows integrated authentication in Directory
Security. It does not work, but it does work if the application run on
Windows XP. I don't know the reason and I wonder if this problem is related
to .NET Compact Framework. Any help will be welcome! The code is shown
below:
 
M

Marcos Fernández

First of all I'd like to thanks Alex Feinman. I tried switching to basic
auth and of course it authenticates successfully. Furthermore .NET
Compact Framework version is 1.1. But the matter is we just want to
secure our windows authentication by not using Basic auth, but also NTLM
(Eventually without reckon with SSL...)


Thanks.
 
G

Guest

First of all I'd like to thanks Alex Feinman. I tried switching to basic auth and of course it authenticates successfully. Furthermore .NET Compact Framework version is 1.1. But the matter is we just want to secure our windows authentication by not using Basic auth, but also NTLM (Eventually without reckon with SSL...

Thanks

Marcos Fernánde

----- Alex Feinman [MVP] wrote: ----

I don't believe NTLM auth is a part of CF 1.0. Try switching your we
service to use basic auth

--
Alex Feinma
--
Visit http://www.opennetcf.or
mfern said:
An application running on Windows CE tries to retrieve data from a we
service on IIS using Windows integrated authentication in Director
Security. It does not work, but it does work if the application run o
Windows XP. I don't know the reason and I wonder if this problem is relate
to .NET Compact Framework. Any help will be welcome! The code is show
below
 
A

Alex Feinman [MVP]

Unfortunately (again, if I remember correctly) NTLM authentication is not
implemented in the current version of Compact Framework. If you are
concerned with open-text password exchange, you will need to use SSL
 

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