mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
tdb2: don't use TDB2 versions of test tdb files.
Now tdb2 handles tdb1 files, we don't need most of commit
5eecc85423
which added TDB2 versions of
all the testing tdbs.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Mon Dec 12 06:33:44 CET 2011 on sn-devel-104
This commit is contained in:
parent
422494a8e6
commit
08019a0973
@ -451,11 +451,7 @@ $ret->{USERNAME} = KTEST\\Administrator
|
||||
#Samba4 DC with the same parameters as are being used here. The
|
||||
#domain SID is S-1-5-21-1071277805-689288055-3486227160
|
||||
|
||||
if (defined($ENV{BUILD_TDB2})) {
|
||||
system("cp $self->{srcdir}/source3/selftest/ktest-secrets.tdb2 $prefix/private/secrets.tdb");
|
||||
} else {
|
||||
system("cp $self->{srcdir}/source3/selftest/ktest-secrets.tdb $prefix/private/secrets.tdb");
|
||||
}
|
||||
system("cp $self->{srcdir}/source3/selftest/ktest-secrets.tdb $prefix/private/secrets.tdb");
|
||||
chmod 0600, "$prefix/private/secrets.tdb";
|
||||
|
||||
#This uses a pre-calculated krb5 credentials cache, obtained by running Samba4 with:
|
||||
|
Binary file not shown.
@ -53,12 +53,9 @@ class TdbDatabase(object):
|
||||
def __init__(self, file):
|
||||
"""Open a file.
|
||||
|
||||
:param file: Path of the file to open (appending "2" if TDB2 enabled).
|
||||
:param file: Path of the file to open.
|
||||
"""
|
||||
if tdb.__version__.startswith("2"):
|
||||
self.tdb = tdb.Tdb(file + "2", flags=os.O_RDONLY)
|
||||
else:
|
||||
self.tdb = tdb.Tdb(file, flags=os.O_RDONLY)
|
||||
self.tdb = tdb.Tdb(file, flags=os.O_RDONLY)
|
||||
self._check_version()
|
||||
|
||||
def _check_version(self):
|
||||
|
BIN
testdata/samba3/account_policy.tdb2
vendored
BIN
testdata/samba3/account_policy.tdb2
vendored
Binary file not shown.
BIN
testdata/samba3/group_mapping.tdb2
vendored
BIN
testdata/samba3/group_mapping.tdb2
vendored
Binary file not shown.
BIN
testdata/samba3/passdb.tdb2
vendored
BIN
testdata/samba3/passdb.tdb2
vendored
Binary file not shown.
BIN
testdata/samba3/registry.tdb2
vendored
BIN
testdata/samba3/registry.tdb2
vendored
Binary file not shown.
BIN
testdata/samba3/secrets.tdb2
vendored
BIN
testdata/samba3/secrets.tdb2
vendored
Binary file not shown.
BIN
testdata/samba3/share_info.tdb2
vendored
BIN
testdata/samba3/share_info.tdb2
vendored
Binary file not shown.
BIN
testdata/samba3/winbindd_idmap.tdb2
vendored
BIN
testdata/samba3/winbindd_idmap.tdb2
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user