IbcConnection and save password

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
calou
Posts: 116
Joined: Tue 27 May 2008 12:46

IbcConnection and save password

Post by calou » Tue 09 Mar 2010 17:37

Hello,

I use TIBCConnection with TIBCConnectDialog to connect to a firebird database
The property StoreLogInfo is set to true. The field username and password are not filled by default.
When the application is launched a window appears (tibcconnectdialog) to ask username and password. The user click connect and it is good.

When the application is relaunched the password is not saved and the user have to write it again.

Is there is a way to prevent it? When the user have filled all the parameters the first time they are all saved?

Thanks for help

Regards

calou
Posts: 116
Joined: Tue 27 May 2008 12:46

Post by calou » Thu 11 Mar 2010 09:40

Hello,

No idea for this question?

thanks for help

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Fri 12 Mar 2010 12:25

Please try to set the SavePassword property of TIBConnectionDialog to true.

calou
Posts: 116
Joined: Tue 27 May 2008 12:46

Post by calou » Fri 12 Mar 2010 13:48

I forget to mention it but of course the property savepassword is true

Regards

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Wed 17 Mar 2010 12:45

Hello

In the help for IBDAC we can see the description of the SavePassword property:
If the SavePassword property is True, and the Password property of the connection instance is assigned, the password in ConnectDialog is displayed in asterisks.

This property allows not to enter password every time on connect to database if Username in ConnectDialog is equal to the Username in Connection. But ConnectDialog doesn't save password in the registry. Reason is that each application has its own security level and developer of each application should decide how they should save password: without encryption or with encryption and which kind of encryption should be applied.

If you want to save password you should inherit your ConnectDialog from TIBCConnectDialog and override methods:
procedure SaveInfoToRegistry(Registry: TRegistry);
procedure LoadInfoFromRegistry(Registry: TRegistry);

calou
Posts: 116
Joined: Tue 27 May 2008 12:46

Post by calou » Wed 17 Mar 2010 15:41

Thank you Bork for the explanations

Post Reply