🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database.interbaseexpress
Article #1

IBToGo and IBSecurityService with EIBInterBase Error Message: "feature is not supported"

#1
From: Marcelo Colonna Rosman
Date: Tue, 05 May 2020 13:45
80 lines
3613 bytes
Hi,

I am trying to change the SYSDBA masterkey password to a new one.
I am using IBSecurityService.

The database file has EUA activated and is encrypted.

I am using InterBase ToGo 2020 (ibtogo.dll) licensed.

The connection to the database is working fine.

The problem occurs only when I try to activate the IBSecuritySevice at run-time.

I have set the following properties of
IBSecurityService component at design-time:
-------------------------------------------
LoginPrompt = False
Protocol = Local
ServerName = ''
ServerType = 'IBEmbedded'
SystemUserName = 'SYSDBA'
UserDatabase = 'C:\Data\DBFile.ib'
UserName = 'SYSDBA'
Password = 'NewPassword'
Params:
   user-Name=SYSDBA
   password=masterkey
-------------------------------------------
When I set the Active property to True the IBSecurityService component is activated and no error message appears.

But when I set the same properties at run-time and then set the Active property of IBSecurityService to True I get the following EIBInterBaseError message: 'feature is not supported'.

Here is the code I am using to modify the SYSDBA masterkey password to a new one:

SEPassword is the "System Encryption Password".
The Database is encrypted .

procedure ModifySYSDBAPassword(OldPassWord, NewPassword, SEPassword, UserDatabase : String);
 var
   ibSecServ : TIBSecurityService;
begin
  ibSecServ := TIBSecurityService.Create(nil);
  try
    ibSecServ.LoginPrompt := False;
    ibSecServ.Params.Clear;
    ibSecServ.Params.Add('user_name=SYSDBA');
    ibSecServ.Params.Add('password=' + OldPassword);
    ibSecServ.Params.Add('sys_encrypt_password=' + SEPassword);
    ibSecServ.ServerType     := cIBEmbedded;

    ibSecServ.SecurityAction := ActionModifyUser;

    ibSecServ.UserDatabase   := UserDatabase;
    ibSecServ.ServerName     := EmptyStr;
    ibSecServ.Protocol       := Local;
    ibSecServ.UserName       := 'SYSDBA';
    ibSecServ.Password       := NewPassword;
    ibSecServ.SystemUserName := 'SYSDBA';

   ibSecServ.Active := True; // Here I get the error message: 
                             // 'feature is not supported'
   ibSecServ.ModifyUser;

   finally
     ibSecServ.Active := False;

     if (ibSecServ <> nil) then
       ibSecServ.Free;
  end;
end;

Can anyone hep me?

If anyone could give me another solution to change the SYSDBA password it would be appreciated too.

Thank you very much.



     
Technical Details
Message-ID: <8832932b-833e-40cb-8c33-8ccacd6f31a1@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <8832932b-833e-40cb-8c33-8ccacd6f31a1@googlegroups.com>
Subject: IBToGo and IBSecurityService with EIBInterBase Error Message: "feature is not supported"
Date: Tue, 05 May 2020 13:45:37 +0000
From: Marcelo Colonna Rosman <marcelo.rosman@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail
X-Received: by 2002:a37:e214:: with SMTP id g20mr3605065qki.317.1588686338054; Tue, 05 May 2020 06:45:38 -0700 (PDT)
X-Received: by 2002:a4a:5d42:: with SMTP id w63mr2900568ooa.49.1588686337727; Tue, 05 May 2020 06:45:37 -0700 (PDT)
Newsgroups: borland.public.delphi.database.interbaseexpress
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=201.17.115.175; posting-account=D0-_AQoAAADz8p3BPOtyVDhfl-RJUlAK
Nntp-Posting-Host: 201.17.115.175
User-Agent: G2/1.0
Mime-Version: 1.0
Injection-Date: Tue, 05 May 2020 13:45:38 +0000
Content-Type: text/plain; charset="UTF-8"