diff --git a/nxc/protocols/ldap.py b/nxc/protocols/ldap.py index 2d3bf53f..e8f3d118 100644 --- a/nxc/protocols/ldap.py +++ b/nxc/protocols/ldap.py @@ -911,9 +911,9 @@ class ldap(connection): if parsed_pw_last_set == "1601-01-01 00:00:00": parsed_pw_last_set = "" - if arguser.get('sAMAccountName').lower() in activeusers and arg == False: + if arguser.get('sAMAccountName').lower() in activeusers and arg is False: self.logger.highlight(f"{arguser.get('sAMAccountName', ''):<30}{parsed_pw_last_set:<20}{arguser.get('badPwdCount', ''):<8}{arguser.get('description', ''):<60}") - elif (arguser.get('sAMAccountName').lower() not in activeusers) and (arg == True): + elif (arguser.get('sAMAccountName').lower() not in activeusers) and (arg is True): self.logger.highlight(f"{arguser.get('sAMAccountName', ''):<7} {'(Disabled)':<22}{parsed_pw_last_set:<20}{arguser.get('badPwdCount', ''):<8}{arguser.get('description', ''):<60}") elif (arguser.get('sAMAccountName').lower() in activeusers) : self.logger.highlight(f"{arguser.get('sAMAccountName', ''):<30}{parsed_pw_last_set:<20}{arguser.get('badPwdCount', ''):<8}{arguser.get('description', ''):<60}")