diff --git a/VERSION b/VERSION index e1d2f8b..7b8d6b7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.64 +1.0.65 diff --git a/ldeep/__main__.py b/ldeep/__main__.py index 0a88eb0..637833f 100755 --- a/ldeep/__main__.py +++ b/ldeep/__main__.py @@ -1897,8 +1897,11 @@ def action_modify_password(self, kwargs): if curr == "None": curr = None - if self.engine.modify_password(user, curr, new): - info("Password of {username} changed".format(username=user)) + try: + if self.engine.modify_password(user, curr, new): + info("Password of {username} changed".format(username=user)) + except LdapActiveDirectoryView.ActiveDirectoryLdapException as e: + error(f"{e}, check sAMAccountName") else: error( "Unable to change {username}'s password, check privileges".format(