#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:
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):