1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

s4:provision: ask the admin about the desired DNS implementation

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
This commit is contained in:
Stefan Metzmacher 2012-09-10 09:44:07 +02:00
parent e3b6b465ee
commit 06809f4ba9

View File

@ -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: