PDA

View Full Version : Case Sensitive Usernames


Claus Emrich
April 16th 03, 07:19 AM
Hi,

can somebody tell me who Win2k/XP handles Usernames?
We have developed a Software that uses SSPI to get the
authentication-information. In Windows NT Usernames always were provided by
SSPI in UPPER CASE. So, our Account-Database in the Software lists the
Usernames with UPPER CASE letters. Now, in Win2k/XP the usernames where
provided "as is". If the User types "Miller" the Software get the Username
"Miller" and deny access, because the Softward want "MILLER" to login.
Does anybody knows a way to force Win2k/XP to convert the Usernames in
either UPPER CASE or lower case?

Thanks a lot for your help!

Claus Emrich

Roger Abell [MVP]
April 16th 03, 02:10 PM
It is best for your software to enforce the case insensitivity=20
by uppercasing what is received before comparing to your=20
internally stored information.
Have you checked in the MSDN library for call options=20
to force LM style names to be returned ? However, as=20
the move is away from the older technologies, and as=20
either resolution involves your modifying your source,=20
you would be best off with internal case insensitivity.

--=20
Roger=20

"Claus Emrich" > wrote in message =
...
> Hi,
>=20
> can somebody tell me who Win2k/XP handles Usernames?
> We have developed a Software that uses SSPI to get the
> authentication-information. In Windows NT Usernames always were =
provided by
> SSPI in UPPER CASE. So, our Account-Database in the Software lists the
> Usernames with UPPER CASE letters. Now, in Win2k/XP the usernames =
where
> provided "as is". If the User types "Miller" the Software get the =
Username
> "Miller" and deny access, because the Softward want "MILLER" to login.
> Does anybody knows a way to force Win2k/XP to convert the Usernames in
> either UPPER CASE or lower case?
>=20
> Thanks a lot for your help!
>=20
> Claus Emrich
>=20
>

Google