Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jHYRj-0007WB-HT for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:45:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHYRi-0001Ju-0w for pgsql-general@arkaria.postgresql.org; Thu, 26 Mar 2020 19:45:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHYRh-0001Jn-NF for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 19:45:41 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHYRe-0002W1-1M for pgsql-general@lists.postgresql.org; Thu, 26 Mar 2020 19:45:41 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E13DA5C0082; Thu, 26 Mar 2020 15:45:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 26 Mar 2020 15:45:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=X acrYF8R0Z3eKkXVeGGaTDebH03NqhG8IHr/fDNUUiw=; b=c8lcQugWr861SpzxT wb83dDMdocPNkEUCpJz/nbVq/5PcQYh6zPqJyGGPSdcJlvLLENRT+x1Fdy0pgSwA oUrpIGgeHI7iffxXptLTcvuRS+oJtiOXcF3Ip7j+hoJA1OB8tfDbVbIWEPfSEjFO JJqsl5nCYGgAeNOHUjH15yEjJvtj2ZrrLIPlSoR/D772U6YcLKHnkXwrGRBS/JDU j0sDnLGcdahWF83UqM+e8MYsjPKU7MX2T9kwzv7cGVbL1OsIwCo4NlD8dANLa91j p7AwoYA+YQzWe0Gmul/YEjqAXFGD8culDZokbwZ1+sshFSS+E0fPRYCqwoUs/Aaf lw8gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=XacrYF8R0Z3eKkXVeGGaTDebH03NqhG8IHr/fDNUU iw=; b=NDhUIl1HEQp6JcekuymTn4SEtccmS+huL66K5cdOmX1ZHN2Zps8AfKqRC 0f6kqoJ0ux4Kk0/8WmMFh2sGLAw2FbMgG8cpqA2lP8WgtyJBIHUgSc55RLPswtd1 rWnmtVfepU9TXsfr9mQg+xDI126gazuoP406foRL6LD31k1vhAXgb6vPyWYZ0PZj fXDvm1sYVa7udpheXQrcdrVNZUu/NS1ytMFOtwmL9SGnJnoouYS84+yv0KYCPH8g UheFsh7l0VoULHmds3uhhgvwbrJnv2xH8nqgyAZTPR2iM+8442MmYaII41EmeM59 nSkWUeFNwr+flSBniAs/8a4bdxp2A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudehjedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejhedrudejvddrledtrdelvd enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (75-172-90-92.tukw.qwest.net [75.172.90.92]) by mail.messagingengine.com (Postfix) with ESMTPA id E170B306A44A; Thu, 26 Mar 2020 15:45:34 -0400 (EDT) Subject: Re: Ident authentication failed To: Ted To , pgsql-general@lists.postgresql.org References: <39f295ba-2e91-6219-e802-26679e221862@gmail.com> <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> From: Adrian Klaver Message-ID: <45f37378-de5c-72eb-98a8-8d81ef51a5fe@aklaver.com> Date: Thu, 26 Mar 2020 12:45:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <3d5c839c-3680-2dd5-01a6-94690e8a7907@theo.to> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/26/20 12:40 PM, Ted To wrote: > Thank you -- I added two lines to the hba file to allow for ident > authentication, restarted postgres and still the same errors. Without knowing how the client is trying to connect to the server this issue will be difficult to solve. > > On 3/26/20 3:35 PM, Ron wrote: >> You're only allowing "trust" authentication, not "ident" authentication. >> >> On 3/26/20 2:29 PM, Ted To wrote: >>> >>> Hi, >>> >>> I'm trying to configure miniflux and am struggling to figure out how >>> to configure postgres for that purpose.  (The miniflux instructions >>> are very terse.)  Regardless of whether I run the command as the >>> postgres user or the miniflux user, I get similar errors.  I am >>> running Centos 7 using the updated scl version of postgres (9.6.10). >>> >>> With the following, the postgres user "miniflux" along with the >>> password are specified in /etc/miniflux.conf. >>> >>> $ miniflux -c /etc/miniflux.conf -migrate >>> Current schema version: 0 >>> Latest schema version: 26 >>> Migrating to version: 1 >>> [FATAL] [Migrate] pq: Ident authentication failed for user "miniflux" >>> >>> I have no problems logging into postgres as the miniflux user using >>> the same password specified in /etc/miniflux.conf. >>> >>> Running the same command without specifying the configuration file >>> uses the postgres user and also fails >>> >>> $ miniflux -migrate >>> [INFO] The default value for DATABASE_URL is used >>> Current schema version: 0 >>> Latest schema version: 26 >>> Migrating to version: 1 >>> [FATAL] [Migrate] pq: Ident authentication failed for user "postgres" >>> >>> My /var/opt/rh/rh-postgresql96/lib/pgsql/data/pg_hba.conf file includes >>> >>> # TYPE  DATABASE        USER            ADDRESS METHOD >>> >>> local   miniflux   miniflux      trust >>> local   miniflux   postgres      trust >>> >>> # "local" is for Unix domain socket connections only >>> local   all             all peer >>> # IPv4 local connections: >>> host    all             all             127.0.0.1/32 trust >>> >>> I'm at a complete loss. >>> >>> Any suggestions? >>> >>> Thanks, >>> >>> Ted To >>> >> -- Adrian Klaver adrian.klaver@aklaver.com