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:50 +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 b4459fc552880f300710ac765072f9c90d1900cb..e5c6c626ac4c4ee4578f396d20e7991489c03452 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 = [