mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
Initial work on a test for samba.tests.samdb
(This used to be commit 8b33860954
)
This commit is contained in:
@ -332,7 +332,6 @@ def setup_samdb_partitions(samdb_path, setup_path, message, lp, session_info,
|
||||
schemadn_ldb = "schema.ldb"
|
||||
if ldap_backend is not None:
|
||||
schema_ldb = ldap_backend
|
||||
|
||||
schemadn_ldb = ldap_backend
|
||||
|
||||
if ldap_backend_type == "fedora-ds":
|
||||
@ -536,6 +535,8 @@ def setup_samdb(path, setup_path, session_info, credentials, lp,
|
||||
:note: This will wipe the main SAM database file!
|
||||
"""
|
||||
|
||||
assert serverrole in ("domain controller", "member server")
|
||||
|
||||
# Also wipes the database
|
||||
setup_samdb_partitions(path, setup_path, schemadn=schemadn, configdn=configdn,
|
||||
domaindn=domaindn, message=message, lp=lp,
|
||||
|
Reference in New Issue
Block a user