Skip to content

Commit

Permalink
Merge pull request #107 from franc-pentest/fix
Browse files Browse the repository at this point in the history
Fix modify_password error handling
  • Loading branch information
tiyeuse authored Sep 29, 2024
2 parents 4b32873 + 8d509fb commit a48f3b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.66
1.0.67
10 changes: 4 additions & 6 deletions ldeep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1903,14 +1903,12 @@ def action_modify_password(self, kwargs):
try:
if self.engine.modify_password(user, curr, new):
info("Password of {username} changed".format(username=user))
else:
error(
f"Unable to change {user}'s password, check domain password policy or privileges"
)
except LdapActiveDirectoryView.ActiveDirectoryLdapException as e:
error(f"{e}, check sAMAccountName")
else:
error(
"Unable to change {username}'s password, check privileges".format(
username=user
)
)

def action_add_to_group(self, kwargs):
"""
Expand Down

0 comments on commit a48f3b7

Please sign in to comment.