1
0
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:
Jelmer Vernooij
2008-02-13 02:18:45 +01:00
parent 9f01303d15
commit 08e3f99f14
4 changed files with 59 additions and 1 deletions

View File

@ -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,