Issue with reading TNS_ADMIN from registry.

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
MarkF
Posts: 211
Joined: Thu 02 Mar 2006 14:55

Issue with reading TNS_ADMIN from registry.

Post by MarkF » Thu 18 Jul 2013 14:51

The code that reads TNS_ADMIN from the windows registry currently requests KEY_WRITE access which will fail under normal user accounts on Windows Vista and above for HKLM. The code should be changed to:

Code: Select all

      // RegIniFile := TRegIniFile.Create('', KEY_READ OR KEY_WRITE);  // original line
      RegIniFile := TRegIniFile.Create('', KEY_READ);   // just ask for read access.
This is in function TOraServerEnumerator.GetTNSFileName.

-Mark

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Issue with reading TNS_ADMIN from registry.

Post by AlexP » Thu 18 Jul 2013 15:45

Hello,

Thanks for the information, we'll change the access level when reading from the HKLM registry branch

Post Reply