From bc6ba4b04cf063fa01199c2a605b48fa9ecd2055 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Mon, 22 Nov 2010 00:28:45 +0200 Subject: s4-samba.tests: Explicitly pass LoadParm() instance to system_session() function Otherwise system_session() creates a LoadParm() instance wich resets certain params to their defaults from smb.conf ("log level" for instance) --- source4/scripting/python/samba/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/scripting/python/samba/tests/__init__.py b/source4/scripting/python/samba/tests/__init__.py index 7a5c2aa694..63faf16919 100644 --- a/source4/scripting/python/samba/tests/__init__.py +++ b/source4/scripting/python/samba/tests/__init__.py @@ -146,7 +146,7 @@ def connect_samdb(samdb_url, lp=None, session_info=None, if not lp: lp=env_loadparm() if not session_info: - session_info=samba.auth.system_session() + session_info=samba.auth.system_session(lp) if not credentials: credentials=cmdline_credentials -- cgit