A
A
Anton2018-05-25 16:46:21
PostgreSQL
Anton, 2018-05-25 16:46:21

How to check if the passwordcheck module is being used without trying to create a user?

Good afternoon!
Is it possible to check if the passwordcheck module is being used without trying to create a user and without checking the postgresql.conf file?
The passwordcheck module checks users' passwords whenever they are set with CREATE ROLE or ALTER ROLE. If a password is considered too weak, it will be rejected and the command will terminate with an error.
To enable this module, add '$libdir/passwordcheck' to shared_preload_libraries in postgresql.conf, then restart the server.
https://www.postgresql.org/docs/10/static/password...
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2018-05-25
Patsev @chemtech

It has no settings, so it is enough to check that it is loaded, i.e. mentioned in
show shared_preload_libraries;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question