views:

126

answers:

1

Hi, I'm trying to call LookupAccountName on Vista - it always fails with the error ERROR_NONE_MAPPED.

What could be the reason??

Thanks!!

A: 

ERROR_NONE_MAPPED typeically means that the username you provided is not available in the format you specified.

Remy Lebeau - TeamB
Thanks for replying.The user exists, and the format is correct. This problem occurs only on Vista, in other OSs it works excellent, so I think that it is not the problem. Any other idea?
Clearly, the user does not actually exist, or at least not in the format you specified it in, otherwise you would not be getting that particular error code. Something else to consider is that LookupAccountSid() returns ERROR_NONE_MAPPED if a name for the SID cannot be found, which either means no name actually exists, or a network timeout prevented the name from being discovered. A similar restriction likely exists in LookupAccountName() as well.
Remy Lebeau - TeamB