Some SNACFG Options Fail using a German version of Windows NT

Last reviewed: February 17, 1998
Article ID: Q181099
The information in this article applies to:
  • Microsoft SNA Server, versions 2.11, 2.11SP1, 2.11SP2, 3.0, 3.0SP1, 3.0SP2, 4.0

SYMPTOMS

There are multiple problems using the SNACFG command line utility when the SNA Server is running on a German version of Windows NT. They include the following:

  1. SNACFG is not able to insert a user.
2. SNACFG cannot cope with the special group "Jeder" (which corresponds
   to the "Everyone" group on the US version of Windows NT).
3. SNACFG USER cannot add local groups.

CAUSE

String comparisons of user names needed to be localized. Instead of using stricmp(), set the system locale to OS native and use stricoll() which properly compares upper and lower case non-US characters.

The local groups problem results because SnaCfg mishandles the fact that LookupAccountSid() returns ERROR_NONE_MAPPED for local group names. The error causes no SID to be found for the group, but SnaCfg adds it anyway, leaving the userSidBlock in the config record full of zeros and the type set to User, not Group.

A solution is to strip off the domain name and retry LookupAccountSid. If it works this time, and the returned SID is SidTypeAlias, then the returned RefDomain will be "BUILTIN" (or its localized equivalent). In this case, replace the RefDomain with the domain name from the command line and continue. If the second LookupAccountSid doesn't work either, then fail as before.

Then, if there is a valid SID for the user or group, it is used with LookupAccountSid to get the proper case of the user name string.

STATUS

Microsoft has confirmed this to be a problem in SNA Server versions 2.11, 2.11 SP1, 2.11 SP2, 3.0, 3.0SP1, 3.0SP2, and 4.0.

A supported fix is now available, but has not been fully regression-tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Product Support Services for more information.


Additional query words: snacfg
Keywords : kbbug2.11 kbbug2.11.sp1 kbbug2.11.sp2 kbbug3.00 kbbug3.00.sp1 prodsna snasetup kbbug3.00.sp2 kbbug4.00
Version : WINDOWS:2.11,2.11SP1,2.11SP2,3.0,3.0SP1,3.0SP2,4.0
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 17, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.