Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Error 0: RegOpenKeyEx when importing acl.txt

Should you have problems with the MS logon plugin, here's the place to look for help or report issues
Post Reply
icestorm50
Posts: 1
Joined: 2008-02-28 20:50

Error 0: RegOpenKeyEx when importing acl.txt

Post by icestorm50 »

I'm using the latest 104RC14 and am trying to upload the ACL I have used in the past

allow 0x00000003 BUILTIN\Administrators

and I am getting this error when I run mslogonacl.exe /i /o c:\acl.txt

Error 0: RegOpenKeyEx
deleting ACE_data linked lists

once this is done the acl inside the program is still empty
does anyone know what I am doing wrong?
Thanks,
Erick
Last edited by icestorm50 on 2008-03-03 21:30, edited 1 time in total.
PCDSmartie
Posts: 2
Joined: 2007-03-30 20:22

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by PCDSmartie »

Same problem here with version 1.0.5 and shipped MSLogonACL.exe (x86/x64) in 64 Bit and 32 Bit commandline interpreter.

>MSLogonACL.exe /i /o acl.txt
account: VORDEFINIERT\Administratoren, mask: 3, type: allow
Detected domain = DOMAIN
account: DOMAIN\Domõnen-Admins, mask: 3, type: allow
Error 0: RegOpenKeyEx
deleting ACE_DATA linked lists

Same problem with one entry:

>MSLogonACL.exe /i /o acl.txt
account: VORDEFINIERT\Administratoren, mask: 3, type: allow
Error 0: RegOpenKeyEx
deleting ACE_DATA linked lists

Any ideas?
Thanks in advance. :)
Malzbier
8
8
Posts: 9
Joined: 2008-08-22 09:15

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by Malzbier »

Hello PCDSmartie,

i had the same problem with the empty "UltraVNC Security Editor" dialogue when using "MSLogonACL.exe" to import security settings for a silent installation on multiple machines.

The solution was to manually create the key "HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3" first and importing the security settings with MSLogonACL.exe afterwards.

Obviously MSLogonACL.exe is unable to create this key independently and when it doesn't find it it simply does nothing.
I think this is a relict of former times when UltraVNC stored it's settings in the registry.

mfg
M. Metzger
PCDSmartie
Posts: 2
Joined: 2007-03-30 20:22

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by PCDSmartie »

Hi Malzbier,

I need this for creating a new MSI-file, but with this information I will create the old regkeys and will test. Thank you. :)
Malloc
Posts: 3
Joined: 2008-08-01 15:27

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by Malloc »

I can confirm that this is still an issue.

As mentioned above, if I create the registry keys first, then the import works fine. This bug should be resolved.

As a workaround, I added this command before I use MSLogonACL.exe
REG ADD HKLM\Software\ORL\WinVNC3
char1iecha1k
Posts: 1
Joined: 2010-03-19 23:21

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by char1iecha1k »

Hi

I was looking for somewhere suitable to post this and I found this thread.

To fix this problem replace lines 228 to 233 in vncImportACL.cpp from this

Code: Select all

if (ERROR_SUCCESS != RegOpenKeyEx( HKEY_LOCAL_MACHINE,
	_T("Software\\ORL\\WinVNC3"),
	0, KEY_SET_VALUE, &hk )){
	_ftprintf(stderr, _T("Error %d: RegOpenKeyEx\n"), GetLastError());
	__leave;
}
to this

Code: Select all

if (ERROR_SUCCESS != RegCreateKeyEx( HKEY_LOCAL_MACHINE,
	_T("Software\\ORL\\WinVNC3"),
	0, NULL, 0, KEY_SET_VALUE, NULL, &hk, &dwDisposition )){
	_ftprintf(stderr, _T("Error %d: RegOpenKeyEx\n"), GetLastError());
	__leave;
}
and add this above the try catch

Code: Select all

DWORD  dwDisposition;

from msdn http://msdn.microsoft.com/en-us/library/ms838625.aspx
Before you can read or write to a key, you must first obtain a handle to it. To do this, use either the RegOpenRegKeyEx or RegCreateKeyEx Microsoft Win32 functions. In practice, you will almost always use RegCreateKeyEx, which will open the key if it exists or create it if it does not. Here is a typical scenario:
I have uploaded a compiled version here

http://www.mediafire.com/file/nk4zznzn1 ... gonACL.exe

and the source here

http://www.mediafire.com/file/2mlenyign ... ortACL.cpp
Last edited by char1iecha1k on 2010-03-19 23:47, edited 3 times in total.
sutex
Posts: 1
Joined: 2010-11-16 05:42

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by sutex »

I just fixed it. Helpful to me.
char1iecha1k wrote:Hi

To fix this problem replace lines 228 to 233 in vncImportACL.cpp from this
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by redge »

Rudi

user reported that this fix is not updated to ultravnc since 20.03.2010 !!!!
http://www.mediafire.com/file/2mlenyign ... ortACL.cpp
please add the fix asap for 1.0.9.5.1 :-)
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
duncan
Posts: 1
Joined: 2011-09-15 02:35

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by duncan »

Thanks char1iecha1k for your effort. The fix did not work for me though. I'm thinking I'm going to have to deploy it with out Windows authentication :(
Jodiazio
Posts: 1
Joined: 2011-10-28 14:20
Contact:

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by Jodiazio »

duncan, I don't know why it didn't work for you but the solution works fine
ppstay
Posts: 4
Joined: 2013-09-12 02:19

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by ppstay »

I am having the same problem here on Win7 64bit with 1.1.9 x64. Weird thing is I don't have this problem on another same win7 machine. Even after I manually created the registry key HKLM:\Software\ORL\WinVNC3. This is driving me crazy. Any workaround? Any help would be appreciated.
ppstay
Posts: 4
Joined: 2013-09-12 02:19

Re: Error 0: RegOpenKeyEx when importing acl.txt

Post by ppstay »

OK. I figured it out, on 64 bit version the registry path is under Wow6432Node. Once run the following before import, it could succeed.

REG ADD HKLM\Software\Wow6432Node\ORL\WinVNC3
Post Reply