diff options
author | Christian Cleberg <hello@cleberg.net> | 2025-05-06 21:31:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 21:31:46 -0500 |
commit | 95bf612c338dec8235e89ca6a1d9e5e8cad3f997 (patch) | |
tree | 82cfd62fb145b7b686d4ae825ab2c2436343e590 /databases/postgres/passwords.sql | |
parent | d62f25007470fe546e0f9d2e38a26e84146f72c5 (diff) | |
download | audit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.tar.gz audit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.tar.bz2 audit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.zip |
reorganize db dir (#6)
Diffstat (limited to 'databases/postgres/passwords.sql')
-rw-r--r-- | databases/postgres/passwords.sql | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/databases/postgres/passwords.sql b/databases/postgres/passwords.sql new file mode 100644 index 0000000..cb81cd6 --- /dev/null +++ b/databases/postgres/passwords.sql @@ -0,0 +1,18 @@ +-- References:
+-- : https://www.postgresql.org/docs/current/view-pg-shadow.html
+-- : https://www.postgresql.org/docs/current/auth-password.html
+-- : https://www.postgresql.org/docs/current/auth-password.html#AUTH-PASSWORD-ENCRYPTION
+-- : https://www.postgresql.org/docs/current/runtime-config.html
+
+-- Defined password configuration
+SELECT *
+FROM pg_settings
+WHERE name LIKE 'password_%';
+
+-- Users and their password configurations
+SELECT
+ usename AS user_name,
+ passwd AS password,
+ valuntil AS valid_until,
+ useconfig AS user_config
+FROM pg_shadow;
\ No newline at end of file |