Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAukj-0003s3-Oo for pgsql-admin@arkaria.postgresql.org; Fri, 21 Jan 2022 14:18:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nAuki-0007BD-L4 for pgsql-admin@arkaria.postgresql.org; Fri, 21 Jan 2022 14:18:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAuki-0007Ar-AO for pgsql-admin@lists.postgresql.org; Fri, 21 Jan 2022 14:18:56 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nAukf-0000nz-S2 for pgsql-admin@lists.postgresql.org; Fri, 21 Jan 2022 14:18:55 +0000 Received: by mail-wm1-x333.google.com with SMTP id q141-20020a1ca793000000b00347b48dfb53so22859284wme.0 for ; Fri, 21 Jan 2022 06:18:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=lzM9BFbV0Y4MBpfN78GK0owndxLbUscCHc/RomFxrdc=; b=yu/ASMatx85Fjh7wKsJyl0rHxEHrXn5eYYtpa+VKKd1lMRhX8h+pIVP86PzEy53mWv n2DU/PeA+ZyiVe6cZ1Yafcnz7C9gPONEoGiCUqzVIpVQSEtoS5601Z48urKUch8BvaE4 M56dNJdvRWhXMvh76uOUUTt4Btzs+V2Npbol8Vc5ovNVBWc5QFmW7iD/ewq3eISU1Dcq AKRyVTVe30E/nFJSZB+WtHOvMUJwuM3/TNIFAIqCEIHP9q9n73GNI6KmlN3uqlQDXBns OGr3KIQz4/r22U0PmzMpu7v76UR9FQ73wrqcFdS/p2gPoFpDmZYAqP3V0+gUgTC5vbyj TTuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=lzM9BFbV0Y4MBpfN78GK0owndxLbUscCHc/RomFxrdc=; b=uhSsvbxuSDcklaB+1uSD6qNKxHEL9LZUR1KSDOIi7dGU25ekT/Bon0bYpYPDNpXzDQ OPPSc4L+YKFXX3KIvgt4g+3QUniXTNAdWpimmBCORUXgtrMaiJpw2dHz+FwHQ9GVWW/X 37mfhDXhWD1QWnVoFXSSMQM04f+yiP4tZMVdByCLVBrnjEEWs3Q5lXJ8X8WVm6cTvRGH I3ifTMYAgI86JEUG4aDtVVD9PBFw/jj7XCTGAW63x2lw2GmGH+MUedfFuCUxdW/VF2uD lrj8nPi9jlCxJhdqKoDVgNwJksqzXr75UOtRiU11oAOXwapiSGruaL4btzJba8tHqBJ+ HnPw== X-Gm-Message-State: AOAM532y80+j2NyhxjOIt11Jt1CVMbhf2FsQkgpZwnCHOREBSaPAfRDV Kyrnpr6xoSzqS1dQVMYkmYi/gA== X-Google-Smtp-Source: ABdhPJySRgcLKUn2drBsEOSPbPVs9zQxF5rB9Se0dJjVQBTnrGfIztN8WguskDZU5kLiCXcaw/gmDA== X-Received: by 2002:a5d:5483:: with SMTP id h3mr1801053wrv.538.1642774732255; Fri, 21 Jan 2022 06:18:52 -0800 (PST) Received: from localhost.localdomain ([2001:871:5e:805f:8289:96bc:214c:4047]) by smtp.gmail.com with ESMTPSA id f9sm6843414wry.115.2022.01.21.06.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 06:18:51 -0800 (PST) Message-ID: <5e4ed7296493684b40a5fa7fb009edf92f5e9ade.camel@cybertec.at> Subject: Re: Password authorization From: Laurenz Albe To: Mladen Gogala , pgsql-admin@lists.postgresql.org Date: Fri, 21 Jan 2022 15:18:50 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2022-01-21 at 09:10 -0500, Mladen Gogala wrote: > On 1/20/22 09:25, Laurenz Albe wrote: >   > > It is not quite clear what you mean, but I assume you want password complexity rules, > > and you want to force users to change their password after a while. > > > > You cannot do any of that with passwords in the database; the best you can > > do is set an expiration time for the user's ability to log in. > Actually, you can. There is the standard "passwordcheck" module described in the documentation: > https://www.postgresql.org/docs/current/passwordcheck.html > You would have to do some C programming, but it's very possible. That is no solution, because it cannot check hashed passwords (except with cracklib). I wrote it. Laurenz Albe