diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-11-08 20:46:25 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-11-08 22:28:38 +0100 |
commit | 099d687d1a5df7c88deced386df38e6e716ca053 (patch) | |
tree | 283890b1542dd5aa127395f5dbd7dcaee1b11a17 /source4 | |
parent | a53bc0a91bea89f0f284429c8fe2678891dd239b (diff) | |
download | samba-099d687d1a5df7c88deced386df38e6e716ca053.tar.gz samba-099d687d1a5df7c88deced386df38e6e716ca053.tar.bz2 samba-099d687d1a5df7c88deced386df38e6e716ca053.zip |
s4:samba-tool user command - always initialise the boolean arguments properly
It they haven't been specified.
Reviewed-by: Jelmer
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Nov 8 22:28:38 CET 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/netcmd/user.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/netcmd/user.py b/source4/scripting/python/samba/netcmd/user.py index e45b3bfb75..7072521aed 100644 --- a/source4/scripting/python/samba/netcmd/user.py +++ b/source4/scripting/python/samba/netcmd/user.py @@ -100,8 +100,8 @@ Example3 shows how to create a new user in the OrgUnit organizational unit. takes_args = ["username", "password?"] def run(self, username, password=None, credopts=None, sambaopts=None, - versionopts=None, H=None, must_change_at_next_login=None, random_password=None, - use_username_as_cn=None, userou=None, surname=None, given_name=None, initials=None, + versionopts=None, H=None, must_change_at_next_login=False, random_password=False, + use_username_as_cn=False, userou=None, surname=None, given_name=None, initials=None, profile_path=None, script_path=None, home_drive=None, home_directory=None, job_title=None, department=None, company=None, description=None, mail_address=None, internet_address=None, telephone_number=None, physical_delivery_office=None): @@ -397,7 +397,7 @@ Example3 shows how an administrator would reset TestUser3 user's password to pas def run(self, username=None, filter=None, credopts=None, sambaopts=None, versionopts=None, H=None, newpassword=None, - must_change_at_next_login=None, random_password=None): + must_change_at_next_login=False, random_password=False): if filter is None and username is None: raise CommandError("Either the username or '--filter' must be specified!") |