if random_password:
password = generate_random_password(128, 255)
- while 1:
+ while True:
if password is not None and password is not '':
break
password = getpass("New Password: ")
takes_args = ["username?"]
+ takes_optiongroups = {
+ "sambaopts": options.SambaOptions,
+ "credopts": options.CredentialsOptions,
+ "versionopts": options.VersionOptions,
+ }
+
def run(self, username=None, sambaopts=None, credopts=None,
versionopts=None, filter=None, H=None):
if username is None and filter is None:
class cmd_user_password(Command):
"""Change password for a user account (the one provided in authentication)
-
-
-
"""
synopsis = "%prog [options]"
Option("--newpassword", help="New password", type=str),
]
+ takes_optiongroups = {
+ "sambaopts": options.SambaOptions,
+ "credopts": options.CredentialsOptions,
+ "versionopts": options.VersionOptions,
+ }
+
def run(self, credopts=None, sambaopts=None, versionopts=None,
newpassword=None):