Page 1 of 1 1
Topic Options
#207207 - 2013-04-26 04:32 PM sidtoname() function broken since ver. 4.60?
florD Offline
Just in Town

Registered: 2013-04-22
Posts: 1
Loc: Belgium
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?


Attachments
tstsid.kix (470 downloads)
Description:



Top
#207208 - 2013-04-26 06:23 PM Re: sidtoname() function broken since ver. 4.60? [Re: florD]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
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.

Top
#207209 - 2013-04-26 06:34 PM Re: sidtoname() function broken since ver. 4.60? [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Did that work for you? Didn't change the result when I tried that.

G-
_________________________
Actually I am a Rocket Scientist! \:D

Top
#207210 - 2013-04-26 06:37 PM Re: sidtoname() function broken since ver. 4.60? [Re: Glenn Barnas]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
I didn't try it. Just eyeballed it. Hmmm...
Top
#207211 - 2013-04-26 06:50 PM Re: sidtoname() function broken since ver. 4.60? [Re: Allen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
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.
Top
#207224 - 2013-05-01 12:39 PM Re: sidtoname() function broken since ver. 4.60? [Re: Allen]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
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

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.056 seconds in which 0.023 seconds were spent on a total of 14 queries. Zlib compression enabled.