cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: International Characters in NTLM Usernames

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 2 Mar 2005 23:01:42 -0800

On Wed, Mar 02, 2005 at 06:41:46PM -0800, hep monk wrote:
> Hi Seshu,
>
> I did decode the NTLM type 3 message. It contains the username in exactly the
> same way that IE does:
>
> fen\xEAtre
>
> where the \xEA means the byte with hex value EA.
>
> Yet, the NTLM handshake doesn't work with libCurl. It's puzzling.
>
>
>
> Seshubabu Pasam <pasam_at_seshubabu.com> wrote:
>
> I am not sure if libCurl is capable of handling non-ASCII chars. Daniel?
> But since you already sniffed the packets etc, why don't you decode them?
> The type-3 message should have the user name in it. Take a look at http://
> davenport.sourceforge.net/ntlm.html to find out the offset of the username
> in the type-3 message.

This document talks about a "negotiated encoding", "either UNICODE or OEM".
Perhaps libcurl negotiates a different encoding than other browsers. Did
you try sending the username in UTF-8 instead?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2005-03-03