Skip to content

Commit

Permalink
Merge pull request #99 from franc-pentest/improve-modify_password
Browse files Browse the repository at this point in the history
Improve modify password function (current password might be optional)
  • Loading branch information
tiyeuse authored Sep 8, 2024
2 parents d9c2b0b + bea59b8 commit 2da169f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.62
1.0.63
8 changes: 4 additions & 4 deletions ldeep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,11 +1645,11 @@ def action_modify_password(self, kwargs):
Arguments:
#user:string
User to unlock
Target user
#newpassword:string
New password
#currpassword:string = None
Current password
@currpassword:string = None
Current password (might be optional according to privileges)
"""
user = kwargs["user"]
new = kwargs["newpassword"]
Expand All @@ -1661,7 +1661,7 @@ def action_modify_password(self, kwargs):
info("Password of {username} changed".format(username=user))
else:
error(
"Unable to change {username}'s password, check privileges or try with ldaps://".format(
"Unable to change {username}'s password, check privileges".format(
username=user
)
)
Expand Down

0 comments on commit 2da169f

Please sign in to comment.