Metze,

   The UserParameters attribute was documented in 2.345  MS-ADA3.  It is 
defined as a Unicode string as below:
  
    " This attribute specifies parameters of the user. Points to a Unicode 
string that is set aside for use by 
applications. This string can be a null string, or it can have any number of 
characters before the 
terminating null character. Terminal servers use this attribute to store 
session configuration data for 
the user. For more information, see [MS-TSTS]."
 
    As per MD-GLOS , throughout the protocol document,  unless otherwise 
specified ,  an Unicode string follows the UTF-
16LE encoding scheme with no Byte Order Mark (BOM).   so it is not documented 
as UTF8 Unicode string.

   But  I am wondering if it matters what kind of Unicode encoding (utf8 vs 
utf16)  is used.    The structure layout of this attribute is documented in 
2.3.1 MS-TSTS.  It is just a BLOB interpreted by the Terminal Service , not a  
null terminated Unicode string.    We may be not correct to define the 
attribute as a Unicode string (attributeSyntax: 2.5.5.12 ) in 2.345 MS-ADA3.    
I will  file a request to check with the product team. 

  Let me know if it makes sense.

Thanks!

Hongwei


-----Original Message-----
From: Hongwei Sun 
Sent: Monday, May 23, 2011 9:50 AM
To: 'Stefan (metze) Metzmacher'; Andrew Bartlett
Cc: [email protected]; [email protected]; Obaid Farooqi; Michael Ströder
Subject: RE: userParameters attribute

metze,

  I will check it and let you know.

Thanks!

Hongwei
   

-----Original Message-----
From: Stefan (metze) Metzmacher [mailto:[email protected]] 
Sent: Sunday, May 22, 2011 11:58 PM
To: Andrew Bartlett
Cc: Hongwei Sun; MSSolve Case Email; [email protected]; 
[email protected]; Obaid Farooqi; Michael Ströder
Subject: Re: [Pfif] [cifs-protocol] [REG:110011477385004] RE: userParameters 
attribute

Am 23.05.2011 05:50, schrieb Andrew Bartlett:
> On Mon, 2010-06-21 at 22:54 +0000, Hongwei Sun wrote:
>> Andrew,
>>
>>   Sorry about the delay to give you a confirmation.  We have been spending 
>> time to review the usage of UserParameters in other Windows components based 
>> on the information you provided.   We found that this attribute is indeed 
>> still used by at least one other Microsoft product, such as RAS Server.  The 
>> related product team is working on this to find how to document it.  During 
>> my vacation, I will ask one of my team member (Obaid) to monitor the 
>> progress and send you the update when it is available.
> 
> Out of pure curiosity, did this ever turn into documentation?

BTW: is it documented that the userParameters attribute is stored as
utf8 string, while
the samr interface uses UTF16? See
https://bugzilla.samba.org/show_bug.cgi?id=8077
(I haven't uploaded examples, but I plan to do so in the next weeks)

metze

_______________________________________________
cifs-protocol mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/cifs-protocol

Reply via email to