OemDomainName in Negotiate Protocol Repsonse

Raghu Iyer riyer at kuokoa.com
Fri Jul 19 08:48:02 GMT 2002

I have attached a packet trace between two NT4.0 machines
that shows a NegProt Response (packet #7) where the flags2 bit
does not say Unicode, yet the oemdomainname field is in UNICODE.
Additional packets are included to show the machine identity.

Going strictly by flag2 bit, does not appear definitive.
Should one consider an OR of flags2 bit and Capabilities field bit
that says Server accepts UNICODE ?


-----Original Message-----
From: Richard Sharpe [mailto:rsharpe at ns.aus.com]
Sent: Friday, July 19, 2002 9:58 PM
To: Raghu Iyer
Cc: samba-technical at samba.org; mballen at erols.com
Subject: Re: OemDomainName in Negotiate Protocol Repsonse

On Fri, 19 Jul 2002, Raghu Iyer wrote:

> Hi,
> How does one figure out if the OemDomainName in an 
> SMB_COM_NEGOTIATE response is in Unicode or in Ascii.

Perhaps you look in the bit in flags 2 that says whether or not you are 
using UNICODE. When I get to work I can look at my collection of
to see if this looks like the case.
> Way back on May 25, 2001, there was a post from Michael Allen
> on OemDomainName in an SMB_COM_NEGOTIATE response (reproduced below).
> I cannot see any response to that post and the puzzle remains.
> Regards,
> Raghu
> ------------------------------------------------------------------
> Michael B. Allen mballen at erols.com 
> Fri, 25 May 2001 02:31:01 -0400 
> Previous message: sendfile() in samba? 
> Next message: psos 
> Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 
> --------
> Isn't OemDomainName in an SMB_COM_NEGOTIATE response *always* in
> Unicode? For some reason I just noticed that Samba does not return
> field in Unicode but rather ASCII. I know this is a "bug" in the
> servers but considering they all do it is there a particular reason
> Samba deviates from this behavior?

Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org, 
sharpe at ethereal.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nt4-nt4-unicode-oemdomainname.pkt
Type: application/octet-stream
Size: 1578 bytes
Desc: nt4-nt4-unicode-oemdomainname.pkt
Url : http://lists.samba.org/archive/samba-technical/attachments/20020719/29556d3e/nt4-nt4-unicode-oemdomainname.obj

More information about the samba-technical mailing list