From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | PAWAN SHARMA <er(dot)pawanshr0963(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: create trigger in postgres to check the password strength |
Date: | 2017-02-03 16:18:27 |
Message-ID: | CAFj8pRA0fRtGes_HqEO+AkkDZxUohLRObOuhBxOczFCY-z+Vow@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2017-02-03 17:17 GMT+01:00 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
> Hi
>
> 2017-02-03 16:14 GMT+01:00 PAWAN SHARMA <er(dot)pawanshr0963(at)gmail(dot)com>:
>
>> Hi All,
>>
>> Is this possible to create trigger in postgres to check the password
>> strength( like char should be min 8 character) while to creating user or
>> role with password.
>>
>> If it possible can you please share the script with me..
>>
>
> yes, it is possible (with a extension)
>
> http://paquier.xyz/postgresql-2/postgres-module-highlight-
> customize-passwordcheck-to-secure-your-database/
>
You can use contrib extension
https://www.postgresql.org/docs/current/static/passwordcheck.html
Regards
Pavel
>
>
> Regards
>
> Pavel
>
>
>>
>> -Pawan
>>
>>
>>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2017-02-03 17:29:45 | Re: Causeless CPU load waves in backend, on windows, 9.5.5 (EDB binary). |
Previous Message | Pavel Stehule | 2017-02-03 16:17:08 | Re: create trigger in postgres to check the password strength |