From 17af115de59fc3b52134a44ae1b0c5170b8f67e3 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Mon, 14 Jun 2010 01:50:47 +0400 Subject: s4 upgradeprovision: add an option to force the rebuilding of FS ACLs on sysvols share Signed-off-by: Jelmer Vernooij --- source4/scripting/bin/upgradeprovision | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision index 0fc60f1ce2..f90443318a 100755 --- a/source4/scripting/bin/upgradeprovision +++ b/source4/scripting/bin/upgradeprovision @@ -141,6 +141,8 @@ parser.add_option("--debugchangesd", action="store_true", help="Print information security descriptors differences") parser.add_option("--debugall", action="store_true", help="Print all available information (very verbose)") +parser.add_option("--resetfileacl", action="store_true", + help="Force a reset on filesystem acls in sysvol / netlogon share") parser.add_option("--full", action="store_true", help="Perform full upgrade of the samdb (schema, configuration, new objects, ...") @@ -1495,7 +1497,10 @@ if __name__ == '__main__': # 22) if lastProvisionUSNs != None: updateProvisionUSN(ldbs.sam, minUSN, maxUSN) - update_gpo(paths, ldbs.sam, names, lp, message) + if opts.full or opts.resetfileacl: + update_gpo(paths, ldbs.sam, names, lp, message, 1) + else: + update_gpo(paths, ldbs.sam, names, lp, message, 0) ldbs.groupedCommit() new_ldbs.groupedCommit() message(SIMPLE, "Upgrade finished !") -- cgit