[Gambas-user] IDE Connection Editor password save anomaly (was Re: Extracting fields from a Result)

Doug Hutcheson owlbrudder at gmail.com
Thu Jan 4 01:40:16 CET 2018


On Wed, 2018-01-03 at 19:22 -0500, T Lee Davidson wrote:
> On 01/03/2018 06:29 PM, Doug Hutcheson wrote:
> > Just to add some information to that, I use the Gnome desktop, not
> > KDE. Gnome uses GnomeKeyring and, prompted by this
> > discussion, I have just browsed the keyring. It does have the
> > correct password set for my application PostgreSQL_test, using
> > path PostgreSQL_test/Connection/Connection1 - Connection1 being the
> > connection I have established for my test harness.
> 
> Given that, I would have to assume that the runtime is looking in the
> '.connection' Settings file in the project source
> directory for the password. And, it's not there.

Perhaps it is sending an invalid request to secret-tool (the Gnome
variant). I have tried a couple of times to extract the key from the
command line using secret-tool and the result is a null value, exactly
what we are seeing when trying to make a connection. We may be onto
something here!
> By looking at FNewConnection.class and MConnection.module in
> master/app/src/gambas3/.src/Connection, I see that, as Tobi pointed
> out, the Connection Editor is relying solely on saving the password
> on the Desktop. It does not even attempt to save it in the
> Settings file. That might be for security reasons.
> 
> But, if we have to put a password directly in code to make it
> successfully connect, what's the difference?
> 
Exactly so.
Cheers, Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180104/28bd8019/attachment.html>


More information about the User mailing list