diff options
author | Matthieu Patou <mat@matws.net> | 2010-06-14 01:50:47 +0400 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 00:43:09 +0200 |
commit | 17af115de59fc3b52134a44ae1b0c5170b8f67e3 (patch) | |
tree | 01408c09363eb3e1a3a4122f751fb740a75b8fcb /source4 | |
parent | 59f17f9e64f4fdf4a63440e20d6b30008072b4df (diff) | |
download | samba-17af115de59fc3b52134a44ae1b0c5170b8f67e3.tar.gz samba-17af115de59fc3b52134a44ae1b0c5170b8f67e3.tar.bz2 samba-17af115de59fc3b52134a44ae1b0c5170b8f67e3.zip |
s4 upgradeprovision: add an option to force the rebuilding of FS ACLs on sysvols share
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/scripting/bin/upgradeprovision | 7 |
1 files changed, 6 insertions, 1 deletions
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 !") |