source4/scripting/python/samba/samba3: handle ntdb files.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 11 Apr 2013 07:42:09 +0000 (17:12 +0930)
committerJeremy Allison <jra@samba.org>
Fri, 12 Apr 2013 21:59:16 +0000 (14:59 -0700)
commit1cf46d2e35c3c290a3d7d1c57d622a2abf2643e6
tree8e40af250881bafaf0deddadab5676d11c391078
parent5b15d107951d353eb4f055a62cf48a8226e8e6a6
source4/scripting/python/samba/samba3: handle ntdb files.

Upgrading old Samba 3 instances seems like a place where we don't have
to read ntdb files, but Andrew Bartlett points out that you can run a
Samba 4.0 and even a 4.1 'classic' domain and desire to migrate that
to the AD DC.

So make this upgrade code generic: if it finds an ntdb file, read
that, otherwise read the tdb file.

Cc: Jelmer Vernooij <jelmer@samba.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/samba3/__init__.py
python/samba/tests/samba3.py