summaryrefslogtreecommitdiff
path: root/source4/setup
diff options
context:
space:
mode:
Diffstat (limited to 'source4/setup')
-rwxr-xr-xsource4/setup/setexpiry2
-rwxr-xr-xsource4/setup/setpassword2
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/setup/setexpiry b/source4/setup/setexpiry
index 57c46f4dff..2740326f2b 100755
--- a/source4/setup/setexpiry
+++ b/source4/setup/setexpiry
@@ -44,6 +44,8 @@ parser.add_option("--noexpiry", help="Password does never expire", action="store
opts, args = parser.parse_args()
+filter = opts.filter
+
if (len(args) == 0) and (filter is None):
print "Either the username or '--filter' must be specified!"
parser.print_usage()
diff --git a/source4/setup/setpassword b/source4/setup/setpassword
index c150f518ad..57772be7a7 100755
--- a/source4/setup/setpassword
+++ b/source4/setup/setpassword
@@ -70,5 +70,5 @@ else:
samdb = SamDB(url=url, session_info=system_session(), credentials=creds, lp=lp)
-samdb.setpassword(filter, password, force_password_change_at_next_login=opts.must_change_at_next_login)
+samdb.setpassword(filter, password, force_password_change_at_next_login_req=opts.must_change_at_next_login)