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 1nP10p-0007ta-GP for pgsql-general@arkaria.postgresql.org; Tue, 01 Mar 2022 11:49:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nP10o-0003Q1-Co for pgsql-general@arkaria.postgresql.org; Tue, 01 Mar 2022 11:49:50 +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 1nP10n-0003Pr-Ru for pgsql-general@lists.postgresql.org; Tue, 01 Mar 2022 11:49:50 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nP10h-0004vf-28 for pgsql-general@lists.postgresql.org; Tue, 01 Mar 2022 11:49:48 +0000 Received: by mail-ej1-x629.google.com with SMTP id dr20so6230627ejc.6 for ; Tue, 01 Mar 2022 03:49:42 -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:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=gR8DE9k1f3k6ZV64lX0IFH0K3VWLRU+dWDdDa9PFGxg=; b=2sIhMnuu24YQTHtqP0F5lwdSlC1d86wn7k/TLfNegy3c+jxmE5hw4rjMTtjpuVZAVO /4A3q3wNyZqoePQjEUMPotgb58r04LbabH7tyTyfTmLcRtS/m9a9/xdcrOpMnCzYYg3E Ns/7nstyRWvRlS7G7DupD+xaDNVIaE9+f4/8v/GHk6LNUYTIWVCqztnz8mII1gqF8X3c X7STkRowPW+g97Woor8Bgnvd4lYsFmZAoyED5VnFuabjDx5abMztRB1iIAlvjWxYBO40 AyznLS9pifjnP4aia2whPCF2CI13e2vE85UsDFuJL7eQTtl/hqChclQxuIIwvS7yBkuC f+gA== 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:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=gR8DE9k1f3k6ZV64lX0IFH0K3VWLRU+dWDdDa9PFGxg=; b=79AUbuVdd5F0UfpLSfudct5LnUS+L6wdpaoXqezGY/HDOQFJ/MpqFje2BlNXYfUiMk /XGTthoiiLjK9dAEZf/9R1qeCME3f/WFcgxQi9I6uSRG6mvXRv5slj1VUlzXaPz1WdSL bozZa07b0SZLasTAv1vW3zlQZJLpgpajRSJerABuqwjFAspfCUY8b6/HGCTlhoFTYvJe 5KARSA5t6C9hiI9N8txrYcMrXED0Z4QWYCbYKiTBvnaSGNVdExhPv6QXzQTaZAp4yrqb k+OehVwfm1LuiprwrkU6uhJmg+29vHPu51WUYCqqOf1nDYXZYiTEkLdsXSnjMdJZdvFJ R6Mg== X-Gm-Message-State: AOAM531NhSxtOHpzi/mifLfWblZAzNvJlioQ4L76iYWpr3Lrwbtsv3JK 6TzBb1OWm65ZgAnHHZMZNbTTnw== X-Google-Smtp-Source: ABdhPJzb1ryPzK4lUCL5NDYUe+WI1PUrph16Sqo4FhTkvNo82ZpNzJ2896LGEBis1se5DkaS9LlyEg== X-Received: by 2002:a17:906:648b:b0:6d6:dfa9:1c6a with SMTP id e11-20020a170906648b00b006d6dfa91c6amr3515164ejm.600.1646135381116; Tue, 01 Mar 2022 03:49:41 -0800 (PST) Received: from localhost.localdomain ([2001:871:5e:e9fc:8751:c5d6:e0e0:889a]) by smtp.gmail.com with ESMTPSA id c7-20020a50f607000000b00412a6892405sm7086885edn.35.2022.03.01.03.49.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 03:49:40 -0800 (PST) Message-ID: <99827ccbd034d98e1208d2fe0e9e0339d8fd7e70.camel@cybertec.at> Subject: Re: Require details that can we set characters length of a password to a User account in PostgreSQL Database. From: Laurenz Albe To: Sonai muthu raja M , "pgsql-general@lists.postgresql.org" Cc: Sivaprahasam Dharman Date: Tue, 01 Mar 2022 12:49:39 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-3.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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