Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve modify password function (current password might be optional) #99

Merged
merged 2 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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