Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egQzu-0002v9-J0 for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Jan 2018 08:10:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egQzt-000629-Ji for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Jan 2018 08:10:29 +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 1egQzt-00061r-99 for pgsql-bugs@lists.postgresql.org; Tue, 30 Jan 2018 08:10:29 +0000 Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1egQzq-0007Od-FM for pgsql-bugs@lists.postgresql.org; Tue, 30 Jan 2018 08:10:28 +0000 Received: by mail-io0-x242.google.com with SMTP id l17so10512116ioc.3 for ; Tue, 30 Jan 2018 00:10:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CfbMmDZPKf3zQrUwB89JBNmFt0VzWi9M0bYSCow39eA=; b=J57wsVq8A/gJwLUSoOp5dVMRT1w9fJs2bxB69shmsm/+VisSMIZraFgubPfoMdbmpY vQixseX0iGRBVWY5H3hteHSX6pd29nDlAEr4fgNtB98gyTIcHnZ5jZ1G5QU3hbR3L46i MLCNEeQdXVoFA2ImKeBiGUeCvGqLtYGILom5p7bswYgOy42PAiGXC/9wBF5+UOUKYhgI 9Sjd41uQ1C1DVxUWO9pWi1o2IZoxSryEaVv6rK055xkyVtEeQTch4XHbMbEM3jYHjV1b O+w9uZulAugAm2ja+oDFb46/un4hTpcuCY7y+EGiJHGNGWQ4EwTWVk2HMhzat8bI5Red 787w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=CfbMmDZPKf3zQrUwB89JBNmFt0VzWi9M0bYSCow39eA=; b=k6X3KKjzfC1yxo3WbFW16C44nj+DYtiNt7JxcSL9YrEfGrgyw89fDs9sM37ikzx8yW 7HTbTfb9zZ1qA83/vf7VxxVCw1MUpT6rXFrF1se4CxDSd/7f9pkFXBp12JMdPl2HzHL8 i31HJzw7X261Af8/+SCkaapeppql3L61yBpe0UZWcQ5hGsJcGlJGsR9/sHJOzuAiEF+z 7uXwMKgg3XNAPlbLoXwdNEf0Kg83vjujlpmm5gTcvihMAnoRfoXVMp0Y2+A3NcqlATLP ODnMBMRd10EHia38MuEe/ib0SsI36wAv3czDZN/f/apE06MEQqqrcJ0KYldP+hGD9YWK /33w== X-Gm-Message-State: AKwxyteWHcuOj7qf/dj+ah65Os0g3bf1+H6OP7uqr0muMTrNWYE9KlVR JlOC/MCmjhlGgxZ9YkcTOeE= X-Google-Smtp-Source: AH8x226ekGIP5XDXjLvFswwyOg6dKKIBPok95lsTsJZyGHsIXi1jfxrh3G6lf07kGK8lXkvMICw3qQ== X-Received: by 10.107.130.233 with SMTP id m102mr28091845ioi.304.1517299825551; Tue, 30 Jan 2018 00:10:25 -0800 (PST) Received: from paquier.xyz (mp76f1f967.ap.nuro.jp. [118.241.249.103]) by smtp.gmail.com with ESMTPSA id r186sm7226535itb.13.2018.01.30.00.10.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jan 2018 00:10:24 -0800 (PST) Date: Tue, 30 Jan 2018 17:10:18 +0900 From: Michael Paquier To: Meirav Rath Cc: "David G. Johnston" , Tomas Vondra , "pgsql-bugs@lists.postgresql.org" , PG Bug reporting form Subject: Re: BUG #15035: scram-sha-256 blocks all logins Message-ID: <20180130081018.GA21433@paquier.xyz> References: <151723922191.1238.12656996435976596418@wrigleys.postgresql.org> <660079bb-b468-f41f-928e-1b3a46e17ae9@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2018 at 07:56:40AM +0000, Meirav Rath wrote: > > host all all 0.0.0.0/0 scram-sha256 > >=20 > Because I can=E2=80=99t restart the postgresql service, it crashes when t= his > is the setup. User postgres is the superuser, by the way. You need to make the difference between a crash and what seems to just be an incorrect configuration which prevents your server to start. If you look at the line above which I have taken from the pg_hba.conf you have written in your last email, it is incorrect. "scram-sha256" is not a correct HBA method. You need to use "scram-sha-256" instead. I would advise to look at the documentation correctly first: https://www.postgresql.org/docs/devel/static/auth-pg-hba-conf.html -- Michael --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpwKGoACgkQnvQgOdby QH2kFg//XvPVaPMwl2sAM7ip4lSIivMNgU44vU6eJJCTqeuQh4gHsRsFePJILnoU rnRk72LkJftDRZHA53D5wlb1qeJdSJk4YMBgcWDlBO8LsYcFM4pcbAIIPh1+EO8P nt8f+RfDy9GbXUqFZvwAFTKINIOLf995JNPChD7HRYJY5XGHkGpCjO4BGEzvsHj8 SeGilVhyhuzk7zjgNx/g6c+ccqMYRvAD6sqIzrJdqDQGw2Wppbdaw9O9ESR3wZy3 q5egNfQoCf5fkPlAMjliwXKNRbm6sPUQH4OJOB+VTcHNtwN2M5jWiNT5tSZi6+04 9H7Y52rHXAZTNT/R6OobtUuQZ65emm6n+wNGW/1WW1Nn9jHPLVstE6MxMQjYVRu4 EeSjHXVZRUs4zdJVN5x6D5zSX5Ph6OVb2rpdxNJemaJLVDQ2vKAeKj1WKDwwN7UU 99s5IaFY7IvfpImf6OcguMaTjuTSZTS9GlPeExQ0uGs3KH3LBMZilUyPWcAy2EDv JhHdimWPSTsBIeun+iWpzwixBl/ZFJkBn1B4wJ1+K8A3mDdlR19B8RA3tkzPxZc6 zJo71kCgW2F+CJ2OInMjXBNMBcECqur+kLtpAKRB6Gqz7MZXagfghpMCbrsoFvNp X9NSsW4/3PYb/bigSWM1i+Vo/wGaPwQ+ep08eCZe1piS1cbVgJQ= =zGHY -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--