summaryrefslogtreecommitdiff
path: root/wintest/wintest.py
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2012-05-31 14:15:47 +0200
committerKai Blin <kai@samba.org>2012-06-21 21:55:20 +0200
commitb45d4beca54428cb71994fed40d44c9ba06bb4d3 (patch)
treea06dac8aa59ee57bd8d7b1e621636b33248543fc /wintest/wintest.py
parent09bee254f028368e59a462ab5d487546da6f940a (diff)
downloadsamba-b45d4beca54428cb71994fed40d44c9ba06bb4d3.tar.gz
samba-b45d4beca54428cb71994fed40d44c9ba06bb4d3.tar.bz2
samba-b45d4beca54428cb71994fed40d44c9ba06bb4d3.zip
wintest: add option to select the dns backend
This is an option to use the internal dns. Signed-off-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'wintest/wintest.py')
-rw-r--r--wintest/wintest.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py
index f6993b2bd6..97ff2be9ea 100644
--- a/wintest/wintest.py
+++ b/wintest/wintest.py
@@ -900,6 +900,13 @@ RebootOnCompletion=No
self.parser.add_option("--sourcetree", type='string', default=None, help='override sourcetree location')
self.parser.add_option("--nocleanup", action='store_true', default=False, help='disable cleanup code')
self.parser.add_option("--use-ntvfs", action='store_true', default=False, help='use NTVFS for the fileserver')
+ self.parser.add_option("--dns-backend", type="choice",
+ choices=["SAMBA_INTERNAL", "BIND9_FLATFILE", "BIND9_DLZ", "NONE"],
+ help="The DNS server backend. SAMBA_INTERNAL is the builtin name server, " \
+ "BIND9_FLATFILE uses bind9 text database to store zone information, " \
+ "BIND9_DLZ uses samba4 AD to store zone information (default), " \
+ "NONE skips the DNS setup entirely (not recommended)",
+ default="BIND9_DLZ")
self.opts, self.args = self.parser.parse_args()
@@ -938,3 +945,10 @@ RebootOnCompletion=No
self.setvar('USE_NTVFS', "--use-ntvfs")
else:
self.setvar('USE_NTVFS', "")
+
+ self.setvar('NAMESERVER_BACKEND', self.opts.dns_backend)
+
+ if self.opts.dns_backend == 'SAMBA_INTERNAL':
+ self.setvar('ALLOW_DNS_UPDATES', '--option=allow dns updates = True')
+ else:
+ self.setvar('ALLOW_DNS_UPDATES', '')