aboutsummaryrefslogtreecommitdiff
path: root/databases/passwords/sql/get_data.sql
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2025-05-06 21:31:46 -0500
committerGitHub <noreply@github.com>2025-05-06 21:31:46 -0500
commit95bf612c338dec8235e89ca6a1d9e5e8cad3f997 (patch)
tree82cfd62fb145b7b686d4ae825ab2c2436343e590 /databases/passwords/sql/get_data.sql
parentd62f25007470fe546e0f9d2e38a26e84146f72c5 (diff)
downloadaudit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.tar.gz
audit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.tar.bz2
audit-tools-95bf612c338dec8235e89ca6a1d9e5e8cad3f997.zip
reorganize db dir (#6)
Diffstat (limited to 'databases/passwords/sql/get_data.sql')
-rw-r--r--databases/passwords/sql/get_data.sql30
1 files changed, 0 insertions, 30 deletions
diff --git a/databases/passwords/sql/get_data.sql b/databases/passwords/sql/get_data.sql
deleted file mode 100644
index b5bef36..0000000
--- a/databases/passwords/sql/get_data.sql
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-References:
-1. https://learn.microsoft.com/en-us/sql/relational-databases/security/password-policy
-2. https://learn.microsoft.com/en-us/sql/t-sql/functions/loginproperty-transact-sql
-*/
-
-SELECT
- name,
- principal_id,
- sid,
- type,
- type_desc,
- is_disabled,
- create_date,
- modify_date,
- default_database_name,
- default_language_name,
- credential_id,
- is_policy_checked,
- is_expiration_checked,
- password_hash,
- LOGINPROPERTY(name, 'IsMustChange') AS IsMustChange,
- LOGINPROPERTY(name, 'IsLocked') AS IsLocked,
- LOGINPROPERTY(name, 'LockoutTime') AS LockoutTime,
- LOGINPROPERTY(name, 'PasswordLastSetTime') AS PasswordLastSetTime,
- LOGINPROPERTY(name, 'IsExpired') AS IsExpired,
- LOGINPROPERTY(name, 'BadPasswordCount') AS BadPasswordCount,
- LOGINPROPERTY(name, 'BadPasswordTime') AS BadPasswordTime,
- LOGINPROPERTY(name, 'HistoryLength') AS HistoryLength
-FROM sys.sql_logins;