summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-11-22 00:28:45 +0200
committerKamen Mazdrashki <kamenim@samba.org>2010-11-22 15:37:40 +0200
commitbc6ba4b04cf063fa01199c2a605b48fa9ecd2055 (patch)
tree268c1d32cd9955da8aaa2a029739196162154862 /source4
parent6965d1eba55913e17910cd0a49217be20046724d (diff)
downloadsamba-bc6ba4b04cf063fa01199c2a605b48fa9ecd2055.tar.gz
samba-bc6ba4b04cf063fa01199c2a605b48fa9ecd2055.tar.bz2
samba-bc6ba4b04cf063fa01199c2a605b48fa9ecd2055.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
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