NTLM auth for web services

D

Dhruva Ray

Hi,

We have secured our web service using NTLM authentication.
However, we are facing problems while trying to
authenticate using the .NET CF libraries on the Pocket PC.
For e.g. the code below:

System.Net.NetworkCredential cred=new
System.Net.NetworkCredential(username,passwword,domain);

This works only when the web server has basic
authentication set. How does one make it work for NTLM?

Any help in this respect will be highly appreciated.

Regards,
Dhruva Ray
 
D

Dhruva Ray

That does not sound correct for 2 reasons:

*Pocket IE supports NTLM authentication in PPC 2003
*THe Pocket PC SDK 2003 mentions support for NTLM SSPI

Can you please clarify?

Thanks
Dhruva Ray
 
A

Alex Yakhnin [eMVP]

Sorry, I meant to say that the System.Net bits
(HttpWebRequest\Response, Web Services etc...) in the
Compact Framework currently don't support NTLM
authentication.

-Alex
 
D

Dhruva Ray

Thanks! Is it possible to acheive the same through
p/invoke? Any pointers?

-Dhruva
 
D

David Wrighton [MS]

Using Digest authentication instead of Basic or NTLM authentication is the
recommended solution. Digest authenticatioin is supported on the .NET
Compact Framework.

David Wrighton
..NET Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Dhruva Ray" <[email protected]>
| Sender: "Dhruva Ray" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: NTLM auth for web services
| Date: Fri, 17 Oct 2003 08:46:59 -0700
| Lines: 68
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOUxeacg7JUK182QeaEEcGuIbcsBw==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:36255
| NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Thanks! Is it possible to acheive the same through
| p/invoke? Any pointers?
|
| -Dhruva
|
|
| >-----Original Message-----
| >Sorry, I meant to say that the System.Net bits
| >(HttpWebRequest\Response, Web Services etc...) in the
| >Compact Framework currently don't support NTLM
| >authentication.
| >
| >-Alex
| >
| >>-----Original Message-----
| >>That does not sound correct for 2 reasons:
| >>
| >>*Pocket IE supports NTLM authentication in PPC 2003
| >>*THe Pocket PC SDK 2003 mentions support for NTLM SSPI
| >>
| >>Can you please clarify?
| >>
| >>Thanks
| >>Dhruva Ray
| >>
| >>
| >>
| >>>-----Original Message-----
| >>>NTLM authentication is not supported by the Pocket PC
| >>platform.
| >>>
| >>>--
| >>>Alex Yakhnin, Microsoft Embedded MVP
| >>>IntelliProg, Inc.
| >>>http://www.intelliprog.com
| >>>
| >>>| >>>> Hi,
| >>>>
| >>>> We have secured our web service using NTLM
| >>authentication.
| >>>> However, we are facing problems while trying to
| >>>> authenticate using the .NET CF libraries on the
| Pocket
| >>PC.
| >>>> For e.g. the code below:
| >>>>
| >>>> System.Net.NetworkCredential cred=new
| >>>> System.Net.NetworkCredential
| >(username,passwword,domain);
| >>>>
| >>>> This works only when the web server has basic
| >>>> authentication set. How does one make it work for
| NTLM?
| >>>>
| >>>> Any help in this respect will be highly appreciated.
| >>>>
| >>>> Regards,
| >>>> Dhruva Ray
| >>>
| >>>
| >>>.
| >>>
| >>.
| >>
| >.
| >
|
 

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