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.

Error 0: RegOpenKeyEx when importing acl.txt

Postby icestorm50 » 2008-02-28 21:19

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.
icestorm50
 
Posts: 1
Joined: 2008-02-28 20:50

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby PCDSmartie » 2008-09-05 13:47

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. :)
PCDSmartie
 
Posts: 2
Joined: 2007-03-30 20:22

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby Malzbier » 2008-09-15 08:15

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
Malzbier
8
8
 
Posts: 9
Joined: 2008-08-22 09:15

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby PCDSmartie » 2008-09-18 20:10

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. :)
PCDSmartie
 
Posts: 2
Joined: 2007-03-30 20:22

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby Malloc » 2010-03-19 14:40

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
Malloc
 
Posts: 3
Joined: 2008-08-01 15:27

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby char1iecha1k » 2010-03-19 23:32

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/nk4zznzn1yz/MSLogonACL.exe

and the source here

http://www.mediafire.com/file/2mlenyignwm/vncImportACL.cpp
Last edited by char1iecha1k on 2010-03-19 23:47, edited 3 times in total.
char1iecha1k
 
Posts: 1
Joined: 2010-03-19 23:21

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby sutex » 2010-11-16 06:01

I just fixed it. Helpful to me.

char1iecha1k wrote:Hi

To fix this problem replace lines 228 to 233 in vncImportACL.cpp from this
sutex
 
Posts: 1
Joined: 2010-11-16 05:42

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby redge » 2011-01-26 00:50

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
redge
Super-Mod
Super-Mod
 
Posts: 6815
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby duncan » 2011-09-15 02:39

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 :(
duncan
 
Posts: 1
Joined: 2011-09-15 02:35

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby Jodiazio » 2011-10-28 14:31

duncan, I don't know why it didn't work for you but the solution works fine
Jodiazio
 
Posts: 1
Joined: 2011-10-28 14:20

Re: Error 0: RegOpenKeyEx when importing acl.txt

Postby ppstay » 2014-10-22 07:15

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

Postby ppstay » 2014-10-22 07:25

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
ppstay
 
Posts: 4
Joined: 2013-09-12 02:19


Return to MS logon plugin

Who is online

Users browsing this forum: No registered users and 3 guests