Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eD9q8-0003r6-GB for pgsql-general@arkaria.postgresql.org; Fri, 10 Nov 2017 13:59:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eD9q7-00015Q-PR for pgsql-general@arkaria.postgresql.org; Fri, 10 Nov 2017 13:59:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eD9nf-0004SO-Bq for pgsql-general@postgresql.org; Fri, 10 Nov 2017 13:56:51 +0000 Received: from smtp.emerald.synacor.com ([208.47.184.7] helo=smtp01.emerald.cmh.synacor.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eD9nU-0004UD-UF for pgsql-general@postgresql.org; Fri, 10 Nov 2017 13:56:46 +0000 X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=DfNVkblW c=1 sm=1 tr=0 a=LHhJW6PWJhK8ZVYKGGPG4g==:117 a=LHhJW6PWJhK8ZVYKGGPG4g==:17 a=KGjhK52YXX0A:10 a=IkcTkHD0fZMA:10 a=d0d0vjhDbBEA:10 a=sC3jslCIGhcA:10 a=qzyW-89uDWQA:10 a=epTmVMiNAAAA:8 a=Rnmkl60QNyXjAuiMJSYA:9 a=QEXdDO2ut3YA:10 a=UoJFmOqMre0A:10 a=V0e7CJ3AGUIA:10 a=ezpOem82a1sA:10 a=A9qRuKp9fkUA:10 a=ndEWmUVY6Yapc0oHF_P4:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YnRvYmVyQGJyb2Fkc3RyaXBlLm5ldA== X_CMAE_Category: , , X-CNFS-Analysis: X-CM-Score: X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp01.emerald.cmh.synacor.com header.from=btober@computer.org; sender-id=softfail Authentication-Results: smtp01.emerald.cmh.synacor.com smtp.mail=btober@computer.org; spf=softfail; sender-id=softfail Authentication-Results: smtp01.emerald.cmh.synacor.com smtp.user=btober; auth=pass (LOGIN) Received-SPF: softfail (smtp01.emerald.cmh.synacor.com: transitional domain computer.org does not designate 24.35.123.104 as permitted sender) Received: from [24.35.123.104] ([24.35.123.104:49986] helo=dc7800.btober.net) by smtp.broadstripe.emerald.synacor.com (envelope-from ) (ecelerity 3.6.1.42806 r(Platform:3.6.1.1)) with ESMTPSA (cipher=AES128-SHA) id C3/AE-09005-510B50A5; Fri, 10 Nov 2017 08:56:37 -0500 Subject: Re: Client Authentication methods To: chiru r , Forums postgresql References: From: Berend Tober Message-ID: <5829ebb8-70ee-a8ea-9493-ad89a1610d1c@computer.org> Date: Fri, 10 Nov 2017 08:56:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org chiru r wrote: > Hi All, > > I am trying to understand the Authentication method in pg_hba.conf file (password & md5) in > PostgreSQL database server. > > I am assuming that the user provides the connection string host/usser/password,then client will go > and contact the DB server pg_hba.conf file in memory without carrying password over the network > initially, and then it confirms the authentication method from pg_hba.conf ,then it decides weather > it send clear text or md5 encrypted password from client to Server to make a session? > > Is my assumption is correct ? or What exactly it make the difference for client if i use > md5/password in pg_hba.conf file in DB server?. > Your assumptions sound consistent with documentation appearing at https://www.postgresql.org/docs/10/static/protocol-flow.html https://www.postgresql.org/docs/10/static/auth-methods.html -- B -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general