florD
(Just in Town)
2013-04-26 04:32 PM
sidtoname() function broken since ver. 4.60?

We just switched from kix32 ver. 4.53 to ver. 4.63 for Win7 support.

The sidtoname() function seems broken for resolving sid's for domain users and local users.
(returns error 1332 (ERROR_NONE_MAPPED): "No mapping between account names and security IDs was done.")
It now seems to work only for well-known sid's (groups and users).

In kix versions 4.51 and 4.53 this function worked perfectly.

Included a test script: tstsid.kix

Strange that no one already notified this?


AllenAdministrator
(KiX Supporter)
2013-04-26 06:23 PM
Re: sidtoname() function broken since ver. 4.60?

Add this to your code...

 Code:
$RC=setoption("WOW64AlternateRegView","On")


Most likely you are using Win 7 64bit. Kix32 is a 32bit exe and without turning on the option, will only see the 32bit portion of the registry.


Glenn BarnasAdministrator
(KiX Supporter)
2013-04-26 06:34 PM
Re: sidtoname() function broken since ver. 4.60?

Did that work for you? Didn't change the result when I tried that.

G-


AllenAdministrator
(KiX Supporter)
2013-04-26 06:37 PM
Re: sidtoname() function broken since ver. 4.60?

I didn't try it. Just eyeballed it. Hmmm...

AllenAdministrator
(KiX Supporter)
2013-04-26 06:50 PM
Re: sidtoname() function broken since ver. 4.60?

Glenn is correct, "WOW64AlternateRegView" did not help. I tested this on Win 8 x64 with the same results... works with 4.53, but fails with 4.63.

Ruud van Velsen
(Hey THIS is FUN)
2013-05-01 12:39 PM
Re: sidtoname() function broken since ver. 4.60?

Wow, another amazing catch, great work!

Turns out, this is another side-effect of changes in the new runtime libraries in VS2012.

I've just debugged this and have added a fix for it in 4.64.

Thanks for the report!

Ruud