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

Registered: 13/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 (206 downloads)
Description:



Top
#207208 - 13/04/26 06:23 PM Re: sidtoname() function broken since ver. 4.60? [Re: florD]
Allen Moderator Offline
KiX Supporter
*****

Registered: 03/04/19
Posts: 4261
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 - 13/04/26 06:34 PM Re: sidtoname() function broken since ver. 4.60? [Re: Allen]
Glenn Barnas Moderator Offline
KiX Supporter
*****

Registered: 03/01/28
Posts: 4211
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 - 13/04/26 06:37 PM Re: sidtoname() function broken since ver. 4.60? [Re: Glenn Barnas]
Allen Moderator Offline
KiX Supporter
*****

Registered: 03/04/19
Posts: 4261
Loc: USA
I didn't try it. Just eyeballed it. Hmmm...
Top
#207211 - 13/04/26 06:50 PM Re: sidtoname() function broken since ver. 4.60? [Re: Allen]
Allen Moderator Offline
KiX Supporter
*****

Registered: 03/04/19
Posts: 4261
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 - 13/05/01 12:39 PM Re: sidtoname() function broken since ver. 4.60? [Re: Allen]
Ruud van Velsen Offline
Developer
*****

Registered: 99/05/06
Posts: 359
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, Mart 
Hop to:
Shout Box

Who's Online
1 registered (green78) and 144 anonymous users online.
Newest Members
Keris2112, Jorromans, qrstuv140696, Bloodboy, NIJAKIX
17451 Registered Users

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