summaryrefslogtreecommitdiff
path: root/python/samba/forest_update.py
AgeCommit message (Collapse)AuthorFilesLines
2023-08-30python: Remove unused importsJoseph Sutton1-2/+0
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-03-22forest_update: behave more like a Windows 2022 serverStefan Metzmacher1-13/+98
It means we apply updates from 11-142 and list all known updates. It turns out that update 53 is actually update 54... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-03-22forest_update: be more verbose about updatesStefan Metzmacher1-4/+12
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-03-22forest_update: make use of self.sd_utils.update_aces_in_dacl()Stefan Metzmacher1-44/+15
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-03-22forest_update: we don't need any controls to update sddl attributesStefan Metzmacher1-2/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-03-22forest_update: only update SDDL for schema objectsStefan Metzmacher1-63/+0
Updates to domainDNS objects are done by the domain updates. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-03-22forest_update: ignore ldb.ERR_ATTRIBUTE_OR_VALUE_EXISTS in operation_ldif()Stefan Metzmacher1-1/+8
This matches what Windows is doing... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-10-05python: Handle LdbError thrown from functions operating on DNsJoseph Sutton1-2/+6
None of these functions can return False now. Instead we must catch the LdbError if we want to perform further error handling. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-10-25python/forest_update: remove unused importsDouglas Bagnall1-13/+0
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
2018-10-23python/samba: PY3 port samba4.blackbox.functionalprepNoel Power1-1/+1
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-01-16python: fix the build with python3.Günther Deschner1-2/+2
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13221 Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2017-12-20forest_update: Allow the script to add the missing forest containersGarming Sam1-0/+34
Before we set the prep level higher in default provisions, we should add these objects to the initial ldif (so that our initial ldif represents a full 2008R2 domain which we build consistently on). Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-12-20forest_update: Create a module to apply forest prep updatesGarming Sam1-0/+511
This module uses information sourced from the Forest-Wide-Updates.md file from one of Microsoft's Github repos to generate the operation information. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>