[DebianGIS-dev] Bug#532145: Acknowledgement ([osm2pgsql] osm2pgsql: always forces a password prompt - breaks unassisted map generation)

Eddy Petrișor eddy.petrisor at gmail.com
Sun Jun 7 01:08:44 UTC 2009


Package: osmqpgsql
tags 532145 patch
tags 532145 upstream
thanks

Hello,

I just looked into the code and it seems that whenever the user
parameter was given, the password prompt appeared, evn if not necessary.

Since -W forces the password prompt, I decoupled this behaviour from the
presence of the user name, allowing this way automated imports and
passwords prompts, if necessary (by providing the -W parameter).


(D)Patch is attached, I tested it on my password-less config on a lenny
machine (made a local backport) and it works properly. If used without a
password when is actually needed this message appears, (which, imo,
could be improved to add a hint, if -W wasn't present - "maybe a
password is required?"), so I'd say the fix makes sense and doesn't
break anything that worked before:


0 eddy at heidi ~/usr/src/osm/planet/git-planet-rom $ osm2pgsql -d gis -m
-U osm planet-rom.osm
osm2pgsql SVN version 0.52-20090607 $Rev: 7141 $

Connection to database failed: FATAL:  Ident authentication failed for
user "osm"



-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20_dont-force-passwords.dpatch
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20090607/e2d8da10/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20090607/e2d8da10/attachment.pgp>


More information about the Pkg-grass-devel mailing list