1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

samba-tool: fix reply when zero day pwd expiry is set

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10318

Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Mon Sep  8 14:15:51 CEST 2014 on sn-devel-104
This commit is contained in:
Björn Jacke 2014-09-08 10:53:40 +02:00 committed by Bjoern Jacke
parent 01a18811cc
commit 815fdb493b

View File

@ -450,12 +450,12 @@ Example4 shows how to set the account expiration so that it will never expire.
# FIXME: Catch more specific exception
raise CommandError("Failed to set expiry for user '%s': %s" % (
username or filter, msg))
if days:
self.outf.write("Expiry for user '%s' set to %u days.\n" % (
username or filter, days))
else:
if noexpiry:
self.outf.write("Expiry for user '%s' disabled.\n" % (
username or filter))
else:
self.outf.write("Expiry for user '%s' set to %u days.\n" % (
username or filter, days))
class cmd_user_password(Command):