1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

s4-dsdb/tests/python: Explicitly pass comamnd line LoadParm() instance to system_session()

Otherwise system_session() creates a LoadParm() instance
which resets certain global parameters to their defaults
from smb.conf ("log level" for instance)

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 15 15:10:47 CET 2010 on sn-devel-104
This commit is contained in:
Kamen Mazdrashki
2010-12-15 15:16:54 +02:00
parent 4a1ce3b4b9
commit 2e259de084
9 changed files with 10 additions and 10 deletions

View File

@ -919,7 +919,7 @@ if not "://" in host:
else:
host = "ldap://%s" % host
ldb = SamDB(url=host, session_info=system_session(), credentials=creds, lp=lp)
ldb = SamDB(url=host, session_info=system_session(lp), credentials=creds, lp=lp)
# Gets back the basedn
base_dn = ldb.domain_dn()