Re: Invalid characters for WTSQuerySessionInformation?
- From: "Ivan Brugiolo [MSFT]" <ivanbrug@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 17 May 2007 01:38:06 -0700
Characters that allows for ambiguity between the `NTLM` fully
qualified names and the SPN-styles names, and the separators of those.
For example, the $ at the end of a name is normally reserved for
the machine domain account (assuming a Kerberos based environment).
`@` separates a name from it's domain.
The `\` is used for NTLM domain, and the `/` can be used
for explicitily registered principal names.
There are a few other restrictions for the last 2 characters of a NTLM name,
caused by the Browser Service implementation in the NTLM days,
and all the compatibilty issues from that onward.
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx> wrote in message
news:%234nXUzBmHHA.3952@xxxxxxxxxxxxxxxxxxxxxxx
Windows XP, probably SP2.
We have been told that in some foreign versions of Windows XP, the Unicode
version of WTSQuerySessionInformationW is failing to retrieve a username
if the name includes an at sign "@".
I am thinking of preparing a test to find which characters
WTSQuerySessionInformationW can't deal with. Intuitively I feel that
Unicode characters "$", backslash, forward slash, quotation mark, and a
few others might also be troublesome. But first I tried to find if
there's any documentation on such restrictions, and couldn't find any.
Also intuitively I think there are probably other APIs that need testing
too. We've already abandoned use of WTSQuerySessionInformationA, instead
calling WTSQuerySessionInformationW and WideCharToMultiByte instead. (I
attempted to describe that workaround twice in postings that have been
censored from this newsgroup.) Does anyone know what characters are
troublesome for any APIs, whether ANSI or Unicode, that deal with
usernames?
.
- Follow-Ups:
- Re: Invalid characters for WTSQuerySessionInformation?
- From: Norman Diamond
- Re: Invalid characters for WTSQuerySessionInformation?
- References:
- Invalid characters for WTSQuerySessionInformation?
- From: Norman Diamond
- Invalid characters for WTSQuerySessionInformation?
- Prev by Date: Re: WTSQuerySessionInformation
- Next by Date: Some bludger looking for help :)
- Previous by thread: Invalid characters for WTSQuerySessionInformation?
- Next by thread: Re: Invalid characters for WTSQuerySessionInformation?
- Index(es):
Relevant Pages
|