mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
s4:samba-tool - other fix for Gémes Géza patch regarding parameter handling
The condition has not been specified correctly since we are expecting a boolean. Pointed out by Jelmer. Reviewed-by: Jelmer
This commit is contained in:
@ -106,7 +106,7 @@ Example3 shows how to create a new user in the OrgUnit organizational unit.
|
||||
job_title=None, department=None, company=None, description=None,
|
||||
mail_address=None, internet_address=None, telephone_number=None, physical_delivery_office=None):
|
||||
|
||||
if random_password is True:
|
||||
if random_password:
|
||||
password = generate_random_password(128, 255)
|
||||
|
||||
while 1:
|
||||
@ -401,7 +401,7 @@ Example3 shows how an administrator would reset TestUser3 user's password to pas
|
||||
if filter is None and username is None:
|
||||
raise CommandError("Either the username or '--filter' must be specified!")
|
||||
|
||||
if random_password is True:
|
||||
if random_password:
|
||||
password = generate_random_password(128, 255)
|
||||
else:
|
||||
password = newpassword
|
||||
|
Reference in New Issue
Block a user