summaryrefslogtreecommitdiff
path: root/source4/libnet/userman.c
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-07-27 21:46:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:06 -0500
commit5cc8a42a058a6d8850143cae68e87f1395de99cc (patch)
tree5a52fc483286b8f94b113eda351fe52758f054c3 /source4/libnet/userman.c
parent5b94a9583f5fa167729fc6e425ae748c740a1ae1 (diff)
downloadsamba-5cc8a42a058a6d8850143cae68e87f1395de99cc.tar.gz
samba-5cc8a42a058a6d8850143cae68e87f1395de99cc.tar.bz2
samba-5cc8a42a058a6d8850143cae68e87f1395de99cc.zip
r8807: Modifying datetime field using struct timeval argument rather than
text-based, after recent discussion with both Andrews :) Basic test seems to work (at least it doesn't fail now). rafal (This used to be commit 1bc3162e9441aeae1d8c4b4f03b5b75eb848f4bf)
Diffstat (limited to 'source4/libnet/userman.c')
-rw-r--r--source4/libnet/userman.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c
index a3c1eaf17a..ef7f2658c4 100644
--- a/source4/libnet/userman.c
+++ b/source4/libnet/userman.c
@@ -549,6 +549,12 @@ static NTSTATUS usermod_open(struct composite_context *c,
i->info12.profile_path.string = s->change.profile_path;
s->change.fields ^= USERMOD_FIELD_PROFILE_PATH;
+
+ } else if (s->change.fields & USERMOD_FIELD_ACCT_EXPIRY) {
+ level = 17;
+ i->info17.acct_expiry = timeval_to_nttime(s->change.acct_expiry);
+
+ s->change.fields ^= USERMOD_FIELD_ACCT_EXPIRY;
}
}