diff options
author | Volker Lendecke <vl@samba.org> | 2015-03-12 13:27:49 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-03-17 11:30:51 +0100 |
commit | 9fbc2e50188fc0f5b075eb49b983204df04b3751 (patch) | |
tree | 3c49c95f3609ccb1c25af9c9efa64c67199894ff /python/samba/samba3 | |
parent | 334015ebca42262668c82fbc9f5b2d25b0100b65 (diff) | |
download | samba-9fbc2e50188fc0f5b075eb49b983204df04b3751.tar.gz |
python: Remove ntdb references
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'python/samba/samba3')
-rw-r--r-- | python/samba/samba3/__init__.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/python/samba/samba3/__init__.py b/python/samba/samba3/__init__.py index 0165909f45d..8df01705497 100644 --- a/python/samba/samba3/__init__.py +++ b/python/samba/samba3/__init__.py @@ -25,7 +25,6 @@ REGISTRY_DB_VERSION = 1 import os import struct import tdb -import ntdb import passdb import param as s3param @@ -50,16 +49,13 @@ def fetch_int32(db, key): class DbDatabase(object): - """Simple Samba 3 TDB/NTDB database reader.""" + """Simple Samba 3 TDB database reader.""" def __init__(self, file): """Open a file. :param file: Path of the file to open, appending .tdb or .ntdb. """ - if os.path.exists(file + ".ntdb"): - self.db = ntdb.Ntdb(file + ".ntdb", flags=os.O_RDONLY) - else: - self.db = tdb.Tdb(file + ".tdb", flags=os.O_RDONLY) + self.db = tdb.Tdb(file + ".tdb", flags=os.O_RDONLY) self._check_version() def _check_version(self): |