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:
@ -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()
|
||||
|
Reference in New Issue
Block a user