summaryrefslogtreecommitdiff
path: root/source3/rpc_server/samr
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-16 16:47:23 +0100
committerVolker Lendecke <vl@samba.org>2011-02-19 11:32:49 +0100
commit943aac2e366b781136cfff467b7ea5631890ebdd (patch)
tree33952961c71bc64d214127e5a291f59db77edbf0 /source3/rpc_server/samr
parent6f3008e62714d46beed96e0f834340f81fa3c0c0 (diff)
downloadsamba-943aac2e366b781136cfff467b7ea5631890ebdd.tar.gz
samba-943aac2e366b781136cfff467b7ea5631890ebdd.tar.bz2
samba-943aac2e366b781136cfff467b7ea5631890ebdd.zip
s3: Add "len" to pdb_set_hours
Diffstat (limited to 'source3/rpc_server/samr')
-rw-r--r--source3/rpc_server/samr/srv_samr_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/samr/srv_samr_util.c b/source3/rpc_server/samr/srv_samr_util.c
index 0bab1271f2..8dfeae15e8 100644
--- a/source3/rpc_server/samr/srv_samr_util.c
+++ b/source3/rpc_server/samr/srv_samr_util.c
@@ -580,7 +580,9 @@ void copy_id21_to_sam_passwd(const char *log_prefix,
pdb_sethexhours(oldstr, pdb_get_hours(to));
pdb_sethexhours(newstr, from->logon_hours.bits);
if (!strequal(oldstr, newstr)) {
- pdb_set_hours(to, from->logon_hours.bits, PDB_CHANGED);
+ pdb_set_hours(to, from->logon_hours.bits,
+ from->logon_hours.units_per_week/8,
+ PDB_CHANGED);
}
}