msad 0.4.3__py3-none-any.whl → 0.4.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
msad/user.py CHANGED
@@ -69,7 +69,7 @@ def has_never_expires_password(conn, search_base: str, user: str):
69
69
  return True if len(result) == 1 else None
70
70
 
71
71
 
72
- def password_changed_in_days(conn, search_base: str, user: str, limit: int = 2000, max_age: int):
72
+ def password_changed_in_days(conn, search_base: str, user: str, max_age: int, limit: int = 2000):
73
73
  # return search(conn, search_base, search_filter, attributes=attributes)
74
74
  search_filter = f"(samaccountname={user})"
75
75
  result = search(
@@ -102,7 +102,7 @@ def check_user(conn, search_base:str, user:str, max_age:int, groups=[]):
102
102
  }
103
103
  )
104
104
  yield (
105
- {"password_changed_in_days": password_changed_in_days(conn, search_base, user)}
105
+ {"password_changed_in_days": password_changed_in_days(conn, search_base, user, max_age)}
106
106
  )
107
107
  yield (
108
108
  {"has_expired_password": has_expired_password(conn, search_base, user, max_age)}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: msad
3
- Version: 0.4.3
3
+ Version: 0.4.5
4
4
  Summary: msad is a commandline for interacting with Active Directory
5
5
  Project-URL: Homepage, https://github.com/matteoredaelli/msad
6
6
  Project-URL: Issues, https://github.com/matteoredaelli/msad/issues
@@ -4,9 +4,9 @@ msad/ad.py,sha256=C3dknAgRY6Jnotk0RgPSye7uzNxUd-7B3oGloGR674E,5679
4
4
  msad/group.py,sha256=3HNpXfYK4yXxDNsXn72JOZSMEwjj0kMiDvVBca1oVuI,2510
5
5
  msad/main.py,sha256=5wBSPOZPkOnYfe-gow1YFt65FpawJooZ3eOKp_RFP0A,10573
6
6
  msad/search.py,sha256=ADbUD8j_Tbh2XIWUYiWcgkg6pmKDciIL3DnCHf_Twzs,3478
7
- msad/user.py,sha256=MWv-U8_FYP-dsuzQQjKP1T-IToP-kz4VBbX1W6QLliY,4241
8
- msad-0.4.3.dist-info/METADATA,sha256=JsLyUqnAXsiSdEk66INx4Ma2FcFacyhVmZJHAE5eRmA,2378
9
- msad-0.4.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- msad-0.4.3.dist-info/entry_points.txt,sha256=UKSjeppC0YX2dfybmBfxLXCqF_HMZFfPX1MRw88rtpI,39
11
- msad-0.4.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
12
- msad-0.4.3.dist-info/RECORD,,
7
+ msad/user.py,sha256=p6n9vQRo1xwccDZEcZPr-7NvU3zjMtidf0-gWtdmrrg,4250
8
+ msad-0.4.5.dist-info/METADATA,sha256=hC_5HkxKer445LubdECYUISFAr0XhIs3MuFGqHD46ek,2378
9
+ msad-0.4.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ msad-0.4.5.dist-info/entry_points.txt,sha256=UKSjeppC0YX2dfybmBfxLXCqF_HMZFfPX1MRw88rtpI,39
11
+ msad-0.4.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
12
+ msad-0.4.5.dist-info/RECORD,,
File without changes