summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2022-11-25 13:04:17 +0000
committerNoel Power <npower@samba.org>2022-12-06 10:38:56 +0000
commitf569f2c17f87f551bcaa6c2fa5d6204107982c3b (patch)
treed054d7f29aeb338b638a842d93dbdab65f00f90b
parent6ea1af287eef832641464c6f764ea84a484a06f7 (diff)
downloadsamba-f569f2c17f87f551bcaa6c2fa5d6204107982c3b.tar.gz
python/samba: use s3 param samba config parsing
follup to commit: b4d7540bb4798e6801accf34a26fc0f2636bdd1f fix another instance to use s3 config parsing which is more forgiving (e.g. include directives that point to non existing files are ignored) Signed-off-by: Noel Power <npower@samba.org> Reviewed-by: David Mulder <dmulder@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Tue Dec 6 10:38:56 UTC 2022 on sn-devel-184
-rw-r--r--python/samba/gp/gpclass.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/gp/gpclass.py b/python/samba/gp/gpclass.py
index 39a34a75cf0..b5eb4a3515d 100644
--- a/python/samba/gp/gpclass.py
+++ b/python/samba/gp/gpclass.py
@@ -547,7 +547,8 @@ def rsop(lp, creds, store, gp_extensions, username, target):
def parse_gpext_conf(smb_conf):
- lp = LoadParm()
+ from samba.samba3 import param as s3param
+ lp = s3param.get_context()
if smb_conf is not None:
lp.load(smb_conf)
else: