Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1swTgc-0041oe-Es for pgsql-admin@arkaria.postgresql.org; Thu, 03 Oct 2024 21:48:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1swTgb-004hsi-NO for pgsql-admin@arkaria.postgresql.org; Thu, 03 Oct 2024 21:48:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1swTgb-004hsa-C9 for pgsql-admin@lists.postgresql.org; Thu, 03 Oct 2024 21:48:37 +0000 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1swTgX-002POn-1K for pgsql-admin@lists.postgresql.org; Thu, 03 Oct 2024 21:48:36 +0000 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-6db4b602e38so12667177b3.1 for ; Thu, 03 Oct 2024 14:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727992113; x=1728596913; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PZ2xt8yG3oDpyFLPJN+Sad717f7Sn5l7gHREnXkd6kE=; b=PNcpvDQ2ol/t8OhGSLZ8kTCtGusAC2/55Iw6mlbMJTz5SDTqQEsIj7W7mKBmIBNdJd xqI6bbcEJzpeuVCaTMABPmZCNnool5/p4L/iBF5QTn/Y6zWD3n38MQo1TosFHeX9TU8Y M35/51SDtPvbZVq7VmrWFK7TjSCzIvb56EsMgddxhugrE0LPG2SUS58E4NQIf3v9KjiK Gx6HQIkbT6stYU0SJvFGFwNlWx3EN5BEJiaqzNdA5K6i3Ee9m7G11ODs+UHxQVxuusWE 0HzKZ6KlPJtGhZZkNVMTsHI7Ap5ICufc9K7zK3uMZIG2VqkpAaryjUWVS9TIUYDEJYTI dQzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727992113; x=1728596913; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PZ2xt8yG3oDpyFLPJN+Sad717f7Sn5l7gHREnXkd6kE=; b=C1zTnIme6U+j2zYvGR7wvBrqiz8GIp4dhZgpH0bPMIznBXkG8GBPXCrgYXDck5wnJ/ Vwt8/mxzWQYUhKzWxG0P33+nsd9FPPVQDNgdalO6OIwM48nSXOTqSZNlMVsIGst0PppR PAtwYMYeAmLUEC+QaOt5lgpR5WXCu0hbBuSayZRHXydb+HYz1578KAU/uj6mqChwSPj3 RH32IA7kWdsMGQ/l6tw9mYKrXfRj+rbmRgq3KKtxr+SIlR7RDU4nPsjdOLrG6vvkEpIZ 7HZDK+z0z4XwWpDewvJkzhMdDUpdVhaoi/FYZwuIF0YqWaG82xPpeJ1z43l4B9RCqDZG jKkg== X-Gm-Message-State: AOJu0Yz0c9zU0SCiyu4KxaR2mPkFrO+CbbWyxsNvsb7vMODrDN7+50yv 1nTWBRipnsj8iLTBqGIfodUR/N0n8DTvjD3uk0zAFbH4MOWBCjX0DxYENc16PvWh25STbBnLpd8 xNUgiSs+hZcz7cRDX87vfBhD2yUI= X-Google-Smtp-Source: AGHT+IHmPNxv0bL513tm2iFx8Jyh5un3yCtIHRx0kfJsIhFuYNNnCgEc+gKgSQmQL9doyIr1CVNAHWWqtaGfsn+Rj0E= X-Received: by 2002:a05:690c:d17:b0:6b4:e3ca:3a76 with SMTP id 00721157ae682-6e2c7032d53mr10476707b3.19.1727992112707; Thu, 03 Oct 2024 14:48:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Casey Date: Thu, 3 Oct 2024 16:48:20 -0500 Message-ID: Subject: Re: Can't log in after password change To: Ron Johnson Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="0000000000000d85270623998415" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000000d85270623998415 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =F0=9F=98=82 On Thu, Oct 3, 2024, 12:22 PM Ron Johnson wrote: > PG 14.13 > > Changed a user's expired password from user "postgres", and now that user > can't log in. > > I know it's something simple, but I just can't see it. > > Linux server: > > $ ssh -q FISPCDSPGS401A grep 11026270 '$PGDATA'/pg_hba.conf > host all 11026270 10.176.64.0/22 > scram-sha-256 > > $ psql -h FISPCDSPGS401A > keyword | value > ----------+--------------- > database | postgres > user | postgres > host | 10.143.170.55 > port | 5432 > (4 rows) > > psql (16.4, server 14.13) > Type "help" for help. > > postgres=3D# ALTER ROLE "11026270" WITH PASSWORD 'blarge'; > ALTER ROLE > postgres=3D# select rolpassword from pg_authid where rolname=3D'11026270'= ; > rolpassword > > > -------------------------------------------------------------------------= -------------------------------------------------------------- > > SCRAM-SHA-256$4096:x551tt4biKIvossG7VwbjA=3D=3D$syOJXKLOFZ8/LHUxHq8rE5q5= dCEDNzB5wgOAHq1vmdI=3D:q670pqidak6v8YjP9KCCWrRmfkkJSvyf/AL0Ydg1k/o=3D > (1 row) > > Windows server: > > C:\Users\11026270>psql -h FISPCDSPGS401A postgres > Password for user 11026270: > psql: error: connection to server at "FISPCDSPGS401A" (10.143.170.55), > port 5432 failed: FATAL: password authentication failed for user "110262= 70" > > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > crustacean! > --0000000000000d85270623998415 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=F0=9F=98=82=C2=A0

On Thu, Oct 3, 2024, 12:22 PM Ron Johns= on <ronljohnsonjr@gmail.com> wrote:
Linux server:

$ ssh -q FI= SPCDSPGS401A grep 11026270 '$PGDATA'/pg_hba.conf
host =C2=A0 =C2= =A0all =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 11026270 =C2=A0 =C2=A0 =C2= =A0 =C2=A0
10.176.64.0/22 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sc= ram-sha-256

$ psql -h FISPCDSPGS401A
=C2=A0keyword =C2=A0| =C2= =A0 =C2=A0 value =C2=A0 =C2=A0
----------+---------------
=C2=A0data= base | postgres
=C2=A0user =C2=A0 =C2=A0 | postgres
=C2=A0host =C2=A0= =C2=A0 | 10.143.170.55
=C2=A0port =C2=A0 =C2=A0 | 5432
(4 rows)
<= br>psql (16.4, server 14.13)
Type "help" for help.

post= gres=3D# ALTER ROLE "11026270" WITH PASSWORD 'blarge';ALTER ROLE
postgres=3D# select rolpassword from pg_authid where rolname= =3D'11026270';
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 rolpassword =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0
--------------------------------------------= ---------------------------------------------------------------------------= ----------------
=C2=A0SCRAM-SHA-256$4096:x551tt4biKIvossG7VwbjA=3D=3D$s= yOJXKLOFZ8/LHUxHq8rE5q5dCEDNzB5wgOAHq1vmdI=3D:q670pqidak6v8YjP9KCCWrRmfkkJS= vyf/AL0Ydg1k/o=3D
(1 row)

Windows server:

C:\Users\11026270>psql -h FISPCDSPGS401A postgres
Pas= sword for user 11026270:
psql: error: connection to server at "FISP= CDSPGS401A" (10.143.170.55), port 5432 failed: FATAL: =C2=A0password a= uthentication failed for user "11026270"


--
Death to <Redacted>, and butter sauce.Don't boil me, I'm still alive.
<Redacted> cru= stacean!
--0000000000000d85270623998415--