[Qgis-user] obscurate DB password from .qgs project

Yves Jacolin yjacolin at free.fr
Fri Nov 16 11:17:53 PST 2012


Le vendredi 16 novembre 2012 20:12:54 Jürgen E. Fischer a écrit :
> Hi Giovanni,
> 
> On Fri, 16. Nov 2012 at 20:07:43 +0100, G. Allegri wrote:
> > > The other way to do it would be to add a user-defined "master"
> > > passphrase
> > > (entered at run-time) to unlock all of the encrypted passwords, assuming
> > > there are many. Exactly like Thunderbird/Firefox's Master Password.
> > 
> > That's what I also was thinking to. I have dozens of layers and I can't
> > ask
> > the uset to set the pw for each one.  I hope I will be able to manage this
> > through code...
> 
> QGIS will only ask for each connection once and cache the credentials in
> memory - so if you have multiple layers from the same database, you should
> see the request only once.
> 
> 
> Jürgen
Hello,

Is it possible to store this credentials in "user setting" instead in the 
project files? I mean currently if user open the project later he should fill a 
again the credentials form, isn't it?

Y.
-- 
Yves Jacolin



More information about the Qgis-user mailing list