Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Odd registry problem

7 views
Skip to first unread message

Paul Schauble

unread,
Oct 4, 2001, 8:49:16 PM10/4/01
to
At least, I find it odd.

RegOpenKeyEx fails while opening a certain key with error 1332 "No
mapping between account names and security IDs was done."

Would someone please explain what this means?

Thanks,
++PLS

Eric Sassaman [MS]

unread,
Oct 9, 2001, 9:08:42 PM10/9/01
to
As an FYI here's some info I scrounged up on that error. Not sure if
it helps, but here it is...

The LookupAccountSid function accepts a security identifier (SID) as
input. It retrieves the name of the account for this SID and the name
of the first domain on which this SID is found.

The LookupAccountSid function attempts to find a name for the
specified SID by first checking a list of well-known SIDs. If the
supplied SID does not correspond to a well-known SID, the function
checks built-in and administratively defined local accounts. Next,
the function checks the primary domain. Security identifiers not
recognized by the primary domain are checked against the trusted
domains corresponding to their SID prefixes.

LookupAccountSid fails and GetLastError returns ERROR_NONE_MAPPED if
it cannot find an account name for the SID. This can occur if a
network time-out prevents the function from finding the
name. It also occurs for SIDs that have no corresponding account
name, such as a
logon SID that identifies a logon session.

What may be happening is that this error is bubbling up through
RegOpenKeyEx.


-Eric

This posting is provided "AS IS" with no warranties, and confers no
rights. You assume all risk for your use. ©2001 Microsoft
Corporation. All rights reserved. If this disclaimer causes painful
itching or swelling, immediately discontinue use.

0 new messages