Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6PsO-0003Fw-6X for pgsql-admin@arkaria.postgresql.org; Mon, 14 Nov 2016 22:37:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c6PsN-0002rw-AA for pgsql-admin@arkaria.postgresql.org; Mon, 14 Nov 2016 22:37:19 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c6PsM-0002rg-8j for pgsql-admin@postgresql.org; Mon, 14 Nov 2016 22:37:18 +0000 Received: from mail-yb0-x230.google.com ([2607:f8b0:4002:c09::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c6PsE-0007xC-VX for pgsql-admin@postgresql.org; Mon, 14 Nov 2016 22:37:17 +0000 Received: by mail-yb0-x230.google.com with SMTP id a184so29580813ybb.0 for ; Mon, 14 Nov 2016 14:37:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FwxP+gO/fFs7loPyJT3iy1BWHdS1OGgNRvvSGzQeS3E=; b=1Djo//1R/JPJALTPa9597tdwCNmP/2cZeOdUC/xpRvU7T6HhBHy5FTMfJ9VDx/5xH4 9b8iQS53a2+E5aphX4Bw3LJl9eGKAVNvA4mix7ogv6gA/CsXnDEdmyM3UUj4DP9Lcx5h 55Lel/y5Xy033hhyJTLmLyzb9FKze2ZuzPwLTNzX98ztC4KzpbewznQwSR7XtH9/W2Kh 5jMJ9HO4PpEpG7icgXDCE/kttfggSR3RLtz1qAZrn787cinG5JIQ9o4iR+rbXx/bUCs4 ECte3mC9Sl6if8bqugUx1LDmN3p46iRccI2yOlk/GpqB/N95NtGAel5y5fv83Oe5kpSy KXiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FwxP+gO/fFs7loPyJT3iy1BWHdS1OGgNRvvSGzQeS3E=; b=ZsDu/+aws0yRlBfduKOUhkUm+2ZKQRmnOFRZos+16PJF3MwrRr6V7u1ZUFAx+G+929 BD4TcKYziIW/J1ZNKDFVjMJiz8SnJhIZVjldg2fay0w7r2yr+KmB0JD2TcRBZNRG6xhZ HNr+DGkB7OXw9g1Chkq3lCYWHJHVtJQaP8+bdNKxlFgpnbNlSMZV0TfxhsxWUMA//6NT 1UMlyYIT3rfHFgtsjfjJkpPD9L2afdTCvV+H1T99phnQH2LqGoWh6+KSeGktwAe5g4el tgAiZwHPqWBMQ2lbZlWXsZPaKXMgUXVcPfP0+2pvH2QS3YaqDWUtbhaNGNZW0CkNVa+m 3mbQ== X-Gm-Message-State: ABUngvc6GVwGQHDgcRNJnAPgoa8zF1TMfXVu/y6n1re2i/YEuBQMlHRHGgjXq4QLYziAmA== X-Received: by 10.37.218.18 with SMTP id n18mr17411127ybf.3.1479163028007; Mon, 14 Nov 2016 14:37:08 -0800 (PST) Received: from [192.168.1.130] (71-12-86-250.dhcp.spbg.sc.charter.com. [71.12.86.250]) by smtp.gmail.com with ESMTPSA id a127sm9085066ywc.25.2016.11.14.14.37.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 14:37:07 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: hostnossl in pg_hba.conf demands a password From: John Scalia X-Mailer: iPad Mail (14B100) In-Reply-To: <13378.1479160375@sss.pgh.pa.us> Date: Mon, 14 Nov 2016 17:37:07 -0500 Cc: Venkata B Nagothi , pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: <5878107F-B5AB-4AEB-8B52-987AF3DB1739@gmail.com> <13378.1479160375@sss.pgh.pa.us> To: Tom Lane X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Thanks, Tom, I'll check to see if it's trying an SSL comnection, but being that I logged= into this server, and I know that I don't have an .ssh subdirectory in my = home dir, I didn't think an SSL connection would be tried. We'll see. Thanks again, Jay Sent from my iPad > On Nov 14, 2016, at 4:52 PM, Tom Lane wrote: >=20 > John Scalia writes: >> The only entries are a local connection line with md5 authentication spe= cified and a line for local replication with a trust authentication. Both o= f these entries do seem to be working properly. >=20 > So the client is trying an SSL connection first (which would be the > default behavior for libpq at least), and that falls through the > hostnossl line and is captured by the md5 line. Hence you get a > password prompt. The client has no way to know that a non-SSL > connection would have gotten a different response. >=20 > You could change the md5 line to hostssl, perhaps. Or configure > the client to try non-SSL first (see sslprefer). >=20 > regards, tom lane --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin