You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Reporter: bob[at]cakebox.net [Submitted to the original trac issue database at 7.30pm, Friday, 9th January 2009]
Postgres is often setup to use it's rather genial ident authentication system by default (it is for example on debian).
Using the default debian setup I can't authenticate to postgres, getting instead a (large) screenful of exception spew.
The problem might actually be the host it's connecting to, if it goes over TCP/IP to localhost ident won't work, it has to be over the local unix socket (which is a good idea anyway, performance-wise).
The text was updated successfully, but these errors were encountered:
Author: ppawel[at]fastmail.fm [Added to the original trac issue at 12.40pm, Friday, 26th October 2012]
It does not work for me - Osmosis always tries to do password authentication. I looked at the code and simply changing both DatabaseConstants.TASK_DEFAULT_USER and DatabaseConstants.TASK_DEFAULT_PASSWORD to null fixes this problem - I am able to connect to a database from Osmosis by specifying only "database" parameter - ident/trust auth does the rest.
Diff for the record:
diff --git a/core/src/main/java/org/openstreetmap/osmosis/core/database/DatabaseConstants.java b/core/src/main/java/org/openstreetmap/osmosis/core/database/DatabaseConstants.java
index 0286701..0774c5a 100644
--- a/core/src/main/java/org/openstreetmap/osmosis/core/database/DatabaseConstants.java
+++ b/core/src/main/java/org/openstreetmap/osmosis/core/database/DatabaseConstants.java
@@ -80,7 +80,7 @ public final class DatabaseConstants {
/**
* The default user for a database connection.
*/
- public static final String TASK_DEFAULT_USER = "osm";
+ public static final String TASK_DEFAULT_USER = null;
/**
* The default password for a database connection.
@@ -90,7 +90,7 @ public final class DatabaseConstants {
/**
* The default password for a database connection.
*/
- public static final String TASK_DEFAULT_PASSWORD = "";
+ public static final String TASK_DEFAULT_PASSWORD = null;
/**
* The default value for whether schema version validation should be performed.
Reporter: bob[at]cakebox.net
[Submitted to the original trac issue database at 7.30pm, Friday, 9th January 2009]
Postgres is often setup to use it's rather genial ident authentication system by default (it is for example on debian).
Using the default debian setup I can't authenticate to postgres, getting instead a (large) screenful of exception spew.
The problem might actually be the host it's connecting to, if it goes over TCP/IP to localhost ident won't work, it has to be over the local unix socket (which is a good idea anyway, performance-wise).
The text was updated successfully, but these errors were encountered: