s4:provision: ask the admin about the desired DNS implementation
authorStefan Metzmacher <metze@samba.org>
Mon, 10 Sep 2012 07:44:07 +0000 (09:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 Sep 2012 09:45:08 +0000 (11:45 +0200)
In interactive mode we should let the admin confirm which
implementation he wants.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Sep 10 11:45:08 CEST 2012 on sn-devel-104

source4/setup/provision

index 2df718e4ece122e011195cdb9aae4f62cc4468ac..6cb4674b21428cab6ffec13d8ec48d523ff4e4e6 100755 (executable)
@@ -167,6 +167,12 @@ if opts.interactive:
         sys.exit(1)
 
     opts.server_role = ask("Server Role (dc, member, standalone)", "dc")
+
+    opts.dns_backend = ask("DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE)", "BIND9_DLZ")
+    if opts.dns_backend in (None, ''):
+        print >> sys.stderr, "No DNS backend set!"
+        sys.exit(1)
+
     while True:
         adminpass = getpass("Administrator password: ")
         if not adminpass: