Skip to content

Commit 69bfbdf

Browse files
committed
Password age queries now exclude accts w/no recorded password change
1 parent 68a3b92 commit 69bfbdf

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

ab/customqueries.json

+16-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"queryList": [
1818
{
1919
"final": true,
20-
"query": "MATCH (u:User) WHERE u.pwdlastset < 1577854800.0 and u.enabled=true return u",
20+
"query": "MATCH (u:User) WHERE u.pwdlastset < 1577854800.0 and u.pwdlastset <> 0 and u.enabled=true return u",
2121
"allowCollapse": true
2222
}
2323
]
@@ -28,7 +28,7 @@
2828
"queryList": [
2929
{
3030
"final": true,
31-
"query": "Match (u:User) WHERE u.pwdlastset < 1546318800 and u.enabled=true return u",
31+
"query": "Match (u:User) WHERE u.pwdlastset < 1546318800 and u.pwdlastset <> 0 and u.enabled=true return u",
3232
"allowCollapse": true
3333
}
3434
]
@@ -39,7 +39,7 @@
3939
"queryList": [
4040
{
4141
"final": true,
42-
"query": "Match (u:User) WHERE u.pwdlastset < 1514782800 and u.enabled=true return u",
42+
"query": "Match (u:User) WHERE u.pwdlastset < 1514782800 and u.pwdlastset <> 0 and u.enabled=true return u",
4343
"allowCollapse": true
4444
}
4545
]
@@ -50,7 +50,7 @@
5050
"queryList": [
5151
{
5252
"final": true,
53-
"query": "Match (u:User) WHERE u.pwdlastset < 1483246800 and u.enabled=true return u",
53+
"query": "Match (u:User) WHERE u.pwdlastset < 1483246800 and u.pwdlastset <> 0 and u.enabled=true return u",
5454
"allowCollapse": true
5555
}
5656
]
@@ -61,7 +61,18 @@
6161
"queryList": [
6262
{
6363
"final": true,
64-
"query": "Match (u:User) WHERE u.pwdlastset < 1451624400 and u.enabled=true return u",
64+
"query": "Match (u:User) WHERE u.pwdlastset < 1451624400 and u.pwdlastset <> 0 and u.enabled=true return u",
65+
"allowCollapse": true
66+
}
67+
]
68+
},
69+
{
70+
"name": "No Recorded Password Change",
71+
"category": "Domain Information",
72+
"queryList": [
73+
{
74+
"final": true,
75+
"query": "Match (u:User) WHERE u.pwdlastset = 0 and u.enabled=true return u",
6576
"allowCollapse": true
6677
}
6778
]

0 commit comments

Comments
 (0)