1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/python/samba
Gabriel Nagy 8579340fc5 gpo: Do not get templates list on first run
This is a visual fix and has no impact on functionality apart from
cleaner log messages.

The point of this is to get the list of supported templates in order to
compute a diff between the current applied templates and the updated
list, so we are able to unapply and reapply the policy in case there are
differences.

However this code path is executed on first applies as well, at which
point the root CA is not yet set up. This causes the
`get_supported_templates` call to fail, which is not a hard failure but
still pollutes the logs. In this case it's safe to avoid executing the
command as the policy will be applied regardless.

Signed-off-by: Gabriel Nagy <gabriel.nagy@canonical.com>
Reviewed-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Jan 22 16:48:57 UTC 2024 on atb-devel-224
2024-01-22 16:48:57 +00:00
..
emulate python:samba:emulate: Fix code spelling 2023-06-23 13:44:31 +00:00
gp gpo: Do not get templates list on first run 2024-01-22 16:48:57 +00:00
gp_parse python: use python3 style super statements 2023-12-15 02:54:34 +00:00
kcc python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
netcmd python/netcmd: Improve documentation for "samba-tool user getpassword" 2023-12-21 02:05:38 +00:00
provision python: use python3 style super statements 2023-12-15 02:54:34 +00:00
samba3 python:samba:samba3: Fix code spelling 2023-06-23 13:44:31 +00:00
subunit python: use python3 style super statements 2023-12-15 02:54:34 +00:00
tests gpo: Test certificate policy without NDES 2024-01-22 15:41:36 +00:00
__init__.py python: Generate HRESULT definitions automatically 2024-01-15 01:56:53 +00:00
auth_util.py python: fix slow's mail address 2020-06-05 10:32:30 +00:00
colour.py python:colour: Fix exception message 2023-10-13 03:50:31 +00:00
common.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
dbchecker.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
descriptor.py CVE-2018-14628: python:descriptor: let samba-tool dbcheck fix the nTSecurityDescriptor on CN=Deleted Objects containers 2023-10-16 14:39:33 +00:00
dnsresolver.py DNS Resolver: support both dnspython before and after 2.0.0 2020-10-26 18:33:40 +00:00
dnsserver.py python: use python3 style super statements 2023-12-15 02:54:34 +00:00
domain_update.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
drs_utils.py python: use python3 style super statements 2023-12-15 02:54:34 +00:00
forest_update.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
functional_level.py python: Remove unnecessary f‐strings 2023-10-25 22:23:37 +00:00
getopt.py python: getopt: HostOptions and other option groups inherit from samba OptionGroup class 2023-10-25 00:31:36 +00:00
gkdi.py tests/krb5: Add Python implementation and tests for Group Key Distribution Service 2023-12-21 21:19:30 +00:00
graph.py python: Fix invalid escape sequences 2023-08-30 02:15:29 +00:00
hostconfig.py python/hostconfig: remove 'from __future__ import absolute_import' 2021-04-28 03:43:34 +00:00
idmap.py python: use python3 style super statements 2023-12-15 02:54:34 +00:00
join.py python: use python3 style super statements 2023-12-15 02:54:34 +00:00
logger.py python: use python3 style super statements 2023-12-15 02:54:34 +00:00
mdb_util.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
ms_display_specifiers.py python/samba: Avoid resource leak 2023-03-03 01:07:36 +00:00
ms_forest_updates_markdown.py python:samba: Fix code spelling 2023-06-23 14:51:14 +00:00
ms_schema_markdown.py python/samba: adapt ms_schema[_markdown].py to the latest schema definitions 2023-03-22 22:10:32 +00:00
ms_schema.py python/samba: adapt ms_schema[_markdown].py to the latest schema definitions 2023-03-22 22:10:32 +00:00
ndr.py python/samba/ndr: add ndr_deepcopy() helper 2023-03-22 15:01:32 +00:00
nt_time.py python: Add NT Time utility functions 2023-12-21 20:21:34 +00:00
ntacls.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
policies.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
remove_dc.py python: Fix spelling 2023-08-30 02:15:29 +00:00
safe_tarfile.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
samdb.py python: use python3 style super statements 2023-12-15 02:54:34 +00:00
schema.py setup/ad-schema: add the latest v1803 and v1903 schema files from Microsoft 2023-03-22 22:10:32 +00:00
sd_utils.py python: add docstring for escaped_claim_id function 2023-10-26 23:32:34 +00:00
sites.py python: Handle LdbError thrown from functions operating on DNs 2022-10-05 04:23:32 +00:00
subnets.py python: Handle LdbError thrown from functions operating on DNs 2022-10-05 04:23:32 +00:00
tdb_util.py samba-tool domain provision: better message if tdbbackup missing 2022-09-06 21:12:36 +00:00
trust_utils.py Add CreateTrustedDomainRelax wrapper for fips mode 2020-11-06 10:02:35 +00:00
upgrade.py python: Remove unused parameter ‘name’ 2023-12-14 03:31:37 +00:00
upgradehelpers.py python: Remove unused parameter ‘samdb’ 2023-12-14 03:31:37 +00:00
uptodateness.py py/uptodateness: more details in missing dn report 2022-07-28 06:18:43 +00:00
xattr.py python/xattr: Properly process system.posix_acl_access 2022-05-10 05:19:34 +00:00