gp: Support more global trust directories
commit9ab2eb21141aa23ef5a28b497bf8241db7565788
authorGabriel Nagy <gabriel.nagy@canonical.com>
Wed, 16 Aug 2023 22:05:54 +0000 (17 01:05 +0300)
committerJule Anger <janger@samba.org>
Mon, 15 Jan 2024 10:05:16 +0000 (15 10:05 +0000)
treebee2174a4ba67c69ba7130083e29189a0a49aaa5
parentcfbaab5654cc40ef08ab09492d20aac2f33cbf0e
gp: Support more global trust directories

In addition to the SUSE global trust directory, add support for RHEL and
Debian-based distributions (including Ubuntu).

To determine the correct directory to use, we iterate over the variants
and stop at the first which is a directory.

In case none is found, fallback to the first option which will produce a
warning as it did previously.

Signed-off-by: Gabriel Nagy <gabriel.nagy@canonical.com>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: David Mulder <dmulder@samba.org>
(cherry picked from commit a1b285e485c0b5a8747499bdbbb9f3f4fc025b2f)
python/samba/gp/gp_cert_auto_enroll_ext.py