diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-17 16:00:55 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-17 18:27:31 +0200 |
commit | 4fa327a19f3da86df0fa7e63a66b5ee352de2c5d (patch) | |
tree | 266354064f52802150d89ec791e965dbecc3ddd5 /source4/scripting | |
parent | d237022f91997e11c73ba49438499e5431b00443 (diff) | |
download | samba-4fa327a19f3da86df0fa7e63a66b5ee352de2c5d.tar.gz samba-4fa327a19f3da86df0fa7e63a66b5ee352de2c5d.tar.bz2 samba-4fa327a19f3da86df0fa7e63a66b5ee352de2c5d.zip |
s4:provision - Some rework
- Add/change "wellKnownObjects" attributes
- Order entries in "provision_basedn_modify.ldif"
- Add/change "delete entries" object under BASEDN and CONFIGDN
- Fix default version number of "Default domain policy" group policy
- Add "domain updates" objects for interoperability with MS AD maintaining tools
- Show version number in the "oEMInformation" attribute (suggested by ekacnet)
- Smaller fixups
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index cbb747b64f..4840efcb63 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -912,7 +912,7 @@ def setup_samdb(path, setup_path, session_info, credentials, lp, domainguid_mod = "" setup_modify_ldif(samdb, setup_path("provision_basedn_modify.ldif"), { - "LDAPTIME": timestring(int(time.time())), + "CREATTIME": str(int(time.time()) * 1e7), # seconds -> ticks "DOMAINSID": str(domainsid), "SCHEMADN": names.schemadn, "NETBIOSNAME": names.netbiosname, @@ -922,7 +922,8 @@ def setup_samdb(path, setup_path, session_info, credentials, lp, "POLICYGUID": policyguid, "DOMAINDN": names.domaindn, "DOMAINGUID_MOD": domainguid_mod, - "DOMAIN_FUNCTIONALITY": str(domainFunctionality) + "DOMAIN_FUNCTIONALITY": str(domainFunctionality), + "SAMBA_VERSION_STRING": version }) message("Adding configuration container") @@ -1205,7 +1206,7 @@ def provision(setup_dir, message, session_info, "{" + policyguid + "}") os.makedirs(policy_path, 0755) open(os.path.join(policy_path, "GPT.INI"), 'w').write( - "[General]\r\nVersion=65544") + "[General]\r\nVersion=65543") os.makedirs(os.path.join(policy_path, "MACHINE"), 0755) os.makedirs(os.path.join(policy_path, "USER"), 0755) |