diff options
Diffstat (limited to 'source4/setup/newuser')
-rwxr-xr-x | source4/setup/newuser | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/setup/newuser b/source4/setup/newuser index 281e3849fa..cc89e922a7 100755 --- a/source4/setup/newuser +++ b/source4/setup/newuser @@ -36,6 +36,7 @@ credopts = options.CredentialsOptions(parser) parser.add_option_group(credopts) parser.add_option("--quiet", help="Be quiet", action="store_true") parser.add_option("--unixname", help="Unix Username", type=str) +parser.add_option("--must-change-at-next-login", help="Force password to be changed on next login", action="store_true") opts, args = parser.parse_args() @@ -57,4 +58,4 @@ creds = credopts.get_credentials(lp) samdb = sambaopts.get_hostconfig().get_samdb(session_info=system_session(), credentials=creds) -samdb.newuser(username, opts.unixname, password) +samdb.newuser(username, opts.unixname, password, force_password_change_at_next_login=opts.must_change_at_next_login) |