1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-24 04:23:53 +03:00

python/samba: use s3 param samba config parsing

follup to commit: b4d7540bb4
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
This commit is contained in:
Noel Power
2022-11-25 13:04:17 +00:00
committed by Noel Power
parent 6ea1af287e
commit f569f2c17f

View File

@@ -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: