diff options
author | Matthieu Patou <mat@matws.net> | 2011-07-03 11:15:05 +0400 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-07-11 14:32:44 +1000 |
commit | c3106a6091090212a45b1ef02ddb0272c8f51d73 (patch) | |
tree | e33230481322380e2da90bd6d03a34fed482b777 /source4 | |
parent | 6ec46309c3b1b766a23cd0327bcf7ff9f661fdf2 (diff) | |
download | samba-c3106a6091090212a45b1ef02ddb0272c8f51d73.tar.gz samba-c3106a6091090212a45b1ef02ddb0272c8f51d73.tar.bz2 samba-c3106a6091090212a45b1ef02ddb0272c8f51d73.zip |
s4-provision: fix the value of creation timestamp to be a MS timestamp
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/provision/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index f2b8c045ac..37d3fcbf75 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -1256,7 +1256,7 @@ def setup_samdb(path, session_info, provision_backend, lp, names, setup_modify_ldif(samdb, setup_path("provision_basedn_modify.ldif"), { "DOMAINDN": names.domaindn, - "CREATTIME": str(int(time.time() * 1e7)), # seconds -> ticks + "CREATTIME": str(int((time.time() + 11644473600) * 1e7)), # seconds -> MS time (since 1/1/1601) "NEXTRID": str(next_rid), "DEFAULTSITE": names.sitename, "CONFIGDN": names.configdn, @@ -1343,7 +1343,7 @@ def setup_samdb(path, session_info, provision_backend, lp, names, "DOMAINDN": names.domaindn}) logger.info("Setting up sam.ldb data") setup_add_ldif(samdb, setup_path("provision.ldif"), { - "CREATTIME": str(int(time.time() * 1e7)), # seconds -> ticks + "CREATTIME": str(int((time.time() + 11644473600) * 1e7)), # seconds -> MS time (since 1/1/1601) "DOMAINDN": names.domaindn, "NETBIOSNAME": names.netbiosname, "DEFAULTSITE": names.sitename, |