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 1sit3l-00Ab5o-Ip for pgsql-admin@arkaria.postgresql.org; Tue, 27 Aug 2024 10:04:21 +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 1sit3j-005E7l-Ms for pgsql-admin@arkaria.postgresql.org; Tue, 27 Aug 2024 10:04:20 +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 1sit3j-005E3p-6K for pgsql-admin@lists.postgresql.org; Tue, 27 Aug 2024 10:04:19 +0000 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sit3e-001jqd-TW for pgsql-admin@lists.postgresql.org; Tue, 27 Aug 2024 10:04:19 +0000 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-5d5b986a806so3543173eaf.1 for ; Tue, 27 Aug 2024 03:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitnine-net.20230601.gappssmtp.com; s=20230601; t=1724753054; x=1725357854; 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=cNNaFXdj5myttXD+cRk2+qScdcjLLtT3b+t5ybcands=; b=odzjeLu5GfiS5ETOlCmt1NKbTsvxjGR2eYq1yKGgwRcbmc+mWaYf0WOt39q1lvH2Ab FHNkBp5DXLK1zXQTrdv7hGTsl2obClUBWFLS3gI66zb+6W+mBVcO/JNRH5Cc0i86R+7e 35drojzK3ygMzgLQyHcaxEGw7aFnsnKW1kUcHL+EM8fwz8hIhilj42LBy9mR3GybWrsV E1JLin44cTGo524Cw+yNwK9FMMbn/HusR/25sJmYIE4QlCfhEO4mDd+TasSASIgGuIsZ SnXe3bC0H+U5CGZFBeVZmhd61/2Jnpw7oRmtEgJCXsrSQFG256TManfQdtF11x4MuPfY feXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724753054; x=1725357854; 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=cNNaFXdj5myttXD+cRk2+qScdcjLLtT3b+t5ybcands=; b=iS/jOuGby27lq/4N8Hl2X8nUHlf/yZgCLh7Xzdtm32oE5EvhSw/pC59vT4rHFJVTbE Mle4zE/iPBrmsOeuKqe62myBClxKHKFHjSL/vb1qG5PjwuCrR87HwzpnmFVEii3+JLSz +BFOAsnQuctWDIjrv/6y/0XwUgbf9DMzrkeQTj9uNFtyv4dj5UKrzzTSRQ9m+mDMPVUA 2RH7tMyCxIWfwEB5FOf18qSYIgS9WBl2uLYKiP5JsrMQV3HtuvHHC4+vYJhNH8E94jia xMRDeRpk04eb2O13thUSYYi8DuCVwFKqPLOg8XBiGUiFUbFPI14412Cigh+zks/dUjeW Owug== X-Gm-Message-State: AOJu0Yyf/hQaY7Vv5OHwybQO8pcdFuWzz5sMT/K5yUQcUiINTPPaMjhb NZcLnH5A9oYSGXIa3WA8PG9UceOuWFbMlcxvSHG08Yrd6nCI3MffrIieeD3GAKKyIPRldjgeICn 0LHh/RTh1XzVsGMRYmbM8Knec5QJMLu6rR13EAY2E9kSaHSeM8wVpxQ== X-Google-Smtp-Source: AGHT+IGPWnuHxlCDuMxE8CzalnR/ZZDTw3kPYJ2PecwaYpEfkTZpty9uUn+ywWEH0Nd4WyDF1+D6ng+js5THESWl71g= X-Received: by 2002:a05:6870:e9aa:b0:259:8371:513f with SMTP id 586e51a60fabf-2775a045813mr952010fac.21.1724753053611; Tue, 27 Aug 2024 03:04:13 -0700 (PDT) MIME-Version: 1.0 References: <519417424.215495.1724751414733.ref@mail.yahoo.com> <519417424.215495.1724751414733@mail.yahoo.com> In-Reply-To: <519417424.215495.1724751414733@mail.yahoo.com> From: Muhammad Waqas Date: Tue, 27 Aug 2024 15:04:01 +0500 Message-ID: Subject: Re: Password Change Mandatory during First Login To: SASIKUMAR Devaraj Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="0000000000001613ae0620a75dd6" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001613ae0620a75dd6 Content-Type: text/plain; charset="UTF-8" yes you can by CREATE ROLE foo LOGIN PASSWORD 'foo' VALID UNTIL '2021-11-22'; but password authentication in pg_hba.conf should be enable. On Tue, 27 Aug 2024 at 14:37, SASIKUMAR Devaraj wrote: > Hi All > > Please advise whether it is possible to force the user to change password > during first login. > > Regards > Sasi > -- *Muhammad Waqas* *Senior Technical Support Engineer - Tech Support Center (Karachi)* Mobile: +92-322-2844150 Email: *waqas.m@bitnine.net * 1st floor, suit no F-04, COLABS Karachi, 8-C Khayaban-e-Tanzeem, DHA Phase 5 Tauheed Commercial Area, Defense V Defense Housing Authority, Karachi, Karachi City, Sindh, 75500 Pakistan. --0000000000001613ae0620a75dd6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
yes you can by=C2=A0=C2=A0CREATE ROLE foo LOGIN PASSWORD &= #39;foo' VALID UNTIL '2021-11-22';

but passw= ord authentication in pg_hba.conf should be enable.

On Tue, 27 Aug 202= 4 at 14:37, SASIKUMAR Devaraj <= sashikumard@yahoo.com> wrote:
Hi All

Please advise whether it is po= ssible to force the user to change password during first login.

Regards
Sasi


--
Muhammad Waqas
Se= nior Technical Support Engineer - Tech Support Center (Karachi)
Mobile: +92-322-2844150
Email:=C2=A0=C2=A0waqas.m@bitnine.net=C2=A0
1st floor,= suit no F-04, COLABS Karachi, 8-C Khayaban-e-Tanzeem,=C2=A0
DHA Phase 5 Tauheed Commercial Ar= ea,
Defense V Defen= se Housing Authority, Karachi, Karachi City, Sindh,=C2=A0
= 75500 Pakistan.

--0000000000001613ae0620a75dd6--