s4-provision: fixed --function-level option to provision
authorAndrew Tridgell <tridge@samba.org>
Thu, 11 Feb 2010 12:39:56 +0000 (23:39 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 11 Feb 2010 14:08:11 +0000 (01:08 +1100)
we need the DS_DOMAIN_* levels imported

source4/setup/provision

index 1ae52d27277654cf16130f05caa92e9a9b1b323b..2b31c4cd5679e03949f54cff3fcd36adb4d29016 100755 (executable)
@@ -36,6 +36,7 @@ from samba.credentials import DONT_USE_KERBEROS
 from samba.auth import system_session
 import samba.getopt as options
 from samba.provision import provision, FILL_FULL, FILL_NT4SYNC, FILL_DRS, find_setup_dir
+from samba import DS_DOMAIN_FUNCTION_2003, DS_DOMAIN_FUNCTION_2008, DS_DOMAIN_FUNCTION_2008_R2
 
 # how do we make this case insensitive??