From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Sonai muthu raja M <Sonaimuthu.Raja@sifycorp.Com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Sivaprahasam Dharman <Sivaprahasam.Dharman@sifycorp.Com>
Subject: Re: Require details that can we set characters length of a password to a User account in PostgreSQL Database.
Date: Tue, 01 Mar 2022 12:49:39 +0100
Message-ID: <99827ccbd034d98e1208d2fe0e9e0339d8fd7e70.camel@cybertec.at> (raw)
In-Reply-To: <KL1PR03MB5572D2E3FC06502FAFF7D9A583029@KL1PR03MB5572.apcprd03.prod.outlook.com>
References: <KL1PR03MB5572657A094B732736E3FA1D83699@KL1PR03MB5572.apcprd03.prod.outlook.com>
<KL1PR03MB5572788B0EC0152863674BB483699@KL1PR03MB5572.apcprd03.prod.outlook.com>
<KL1PR03MB5572D2E3FC06502FAFF7D9A583029@KL1PR03MB5572.apcprd03.prod.outlook.com>
On Tue, 2022-03-01 at 08:18 +0000, Sonai muthu raja M wrote:
> Kindly help us to know that can we set characters length of a password to a User account in PostgreSQL Database.
>
> Please do the needful since the information require for auditing purpose.
There is no way to do that.
You can use the "passwordcheck" extension, but that will only work for clear-text
passwords.
Your only real option is *not* to use passwords in the database, but to authenticate
with an external service like Kerberos or LDAP. Then you can enforce the password
rules there.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, Sonaimuthu.Raja@sifycorp.Com, Sivaprahasam.Dharman@sifycorp.Com
Subject: Re: Require details that can we set characters length of a password to a User account in PostgreSQL Database.
In-Reply-To: <99827ccbd034d98e1208d2fe0e9e0339d8fd7e70.camel@cybertec.at>
References: <KL1PR03MB5572657A094B732736E3FA1D83699@KL1PR03MB5572.apcprd03.prod.outlook.com> <KL1PR03MB5572788B0EC0152863674BB483699@KL1PR03MB5572.apcprd03.prod.outlook.com> <KL1PR03MB5572D2E3FC06502FAFF7D9A583029@KL1PR03MB5572.apcprd03.prod.outlook.com> <99827ccbd034d98e1208d2fe0e9e0339d8fd7e70.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox