CVE-2016-0771: tests/dns: prepare script for further testing
authorGarming Sam <garming@catalyst.net.nz>
Thu, 21 Jan 2016 03:58:40 +0000 (16:58 +1300)
committerKarolin Seeger <kseeger@samba.org>
Wed, 24 Feb 2016 10:43:58 +0000 (11:43 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11128
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11686

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/dns.py

index c9f2bdfbd47e5da7f2f84c3a565cd93f0ba684c8..fe0ac3b03ec071690f15da592c8de9c177b991c6 100644 (file)
@@ -36,6 +36,11 @@ def make_txt_record(records):
 
 class DNSTest(TestCase):
 
+    def get_loadparm(self):
+        lp = param.LoadParm()
+        lp.load(os.getenv("SMB_CONF_PATH"))
+        return lp
+
     def errstr(self, errcode):
         "Return a readable error code"
         string_codes = [