Page 1 of 1

IbcConnection and save password

Posted: Tue 09 Mar 2010 17:37
by calou
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

Posted: Thu 11 Mar 2010 09:40
by calou
Hello,

No idea for this question?

thanks for help

Posted: Fri 12 Mar 2010 12:25
by Challenger
Please try to set the SavePassword property of TIBConnectionDialog to true.

Posted: Fri 12 Mar 2010 13:48
by calou
I forget to mention it but of course the property savepassword is true

Regards

Posted: Wed 17 Mar 2010 12:45
by bork
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);

Posted: Wed 17 Mar 2010 15:41
by calou
Thank you Bork for the explanations