{"action":"opened","issue":{"url":"https://api.github.com/repos/aweber/pgsql-listen-exchange/issues/15","labels_url":"https://api.github.com/repos/aweber/pgsql-listen-exchange/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/aweber/pgsql-listen-exchange/issues/15/comments","events_url":"https://api.github.com/repos/aweber/pgsql-listen-exchange/issues/15/events","html_url":"https://github.com/aweber/pgsql-listen-exchange/issues/15","id":105180587,"number":15,"title":"Policy based configuration bypassed on Debian Jessie","user":{"login":"mtds","id":8714415,"avatar_url":"https://avatars.githubusercontent.com/u/8714415?v=3","gravatar_id":"","url":"https://api.github.com/users/mtds","html_url":"https://github.com/mtds","followers_url":"https://api.github.com/users/mtds/followers","following_url":"https://api.github.com/users/mtds/following{/other_user}","gists_url":"https://api.github.com/users/mtds/gists{/gist_id}","starred_url":"https://api.github.com/users/mtds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtds/subscriptions","organizations_url":"https://api.github.com/users/mtds/orgs","repos_url":"https://api.github.com/users/mtds/repos","events_url":"https://api.github.com/users/mtds/events{/privacy}","received_events_url":"https://api.github.com/users/mtds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-07T09:23:07Z","updated_at":"2015-09-07T09:23:07Z","closed_at":null,"body":"Hello.\r\n\r\nI am having troubles using a specific configuration for pgsql-listen-exchange other\r\nthan the one provided by  default with the plugin.\r\n\r\nDespite the following configuration defined under `/etc/rabbitmq/rabbitmq.config`:\r\n\r\n```\r\n[{pgsql_listen_exchange,\r\n  [\r\n    {host, \"localhost\"},\r\n    {port, 5432},\r\n    {dbname, \"my_db\"},\r\n    {user, \"mu_user\"},\r\n    {password, \"my_pwd\"}\r\n  ]}\r\n].\r\n```\r\n\r\nit looks like the plugin is always using `user: postgres' without any password.\r\nFrom the logs of my RabbitMQ server it looks like that the configuration is correctly\r\nacquired:\r\n\r\n```\r\n=INFO REPORT==== 4-Sep-2015::16:44:37 ===\r\nnode           : rabbit@pgsqlsrv\r\nhome dir       : /var/lib/rabbitmq\r\nconfig file(s) : /etc/rabbitmq/rabbitmq.config\r\n[...]\r\n```\r\n\r\nBut whenever I have tried to define a RabbitMQ exchange, like this:\r\n```\r\nrabbitmqadmin declare exchange name=testpgsql type=x-pgsql-listen\r\n```\r\nI will get the following error:\r\n```\r\n*** 506 pgsql_listen_worker failure (invalid_password)\r\n```\r\n\r\nAnd indeed, from the Postgres log file, I can see:\r\n```\r\n2015-09-05 23:19:23 CEST [31316-1] postgres@postgres FATAL:  password authentication failed for user \"postgres\"\r\n2015-09-05 23:19:23 CEST [31316-2] postgres@postgres DETAIL:  User \"postgres\" has no password assigned.\r\n        Connection matched pg_hba.conf line 92: \"host    all             all             127.0.0.1/32  \r\n```\r\n\r\nI have also tried to change the configuration file shipped with the plugin (```include/pgsql_listen.hrl```)\r\nbut the result is always the same.\r\n\r\nI am using Erlang/OTP 17.3, RabbitMQ 3.3.5 and Postgresql 9.4 (all came packaged with Debian 8).\r\n\r\nThanks in advance!"}}