summaryrefslogtreecommitdiff
path: root/source4/torture/drs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2017-08-08 16:49:24 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-08-29 07:23:28 +0200
commit83f2338009bc85669a76edcad876971d3d349942 (patch)
treeca8da1bfe5b6315bfc2800d3e8a3831e9ceccc30 /source4/torture/drs
parent607ba1a2036627d1a90c0ac03265221571dc6899 (diff)
downloadsamba-83f2338009bc85669a76edcad876971d3d349942.tar.gz
selftest: encrypt the LDAP connection in drs_base.py
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source4/torture/drs')
-rw-r--r--source4/torture/drs/python/drs_base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/drs/python/drs_base.py b/source4/torture/drs/python/drs_base.py
index b19c51ac27f..2803e181e6b 100644
--- a/source4/torture/drs/python/drs_base.py
+++ b/source4/torture/drs/python/drs_base.py
@@ -32,7 +32,7 @@ from samba import dsdb
from samba.dcerpc import drsuapi, misc, drsblobs, security
from samba.ndr import ndr_unpack, ndr_pack
from samba.drs_utils import drs_DsBind
-
+from samba import gensec
from ldb import (
SCOPE_BASE,
Message,
@@ -49,6 +49,8 @@ class DrsBaseTestCase(SambaToolCmdTest):
def setUp(self):
super(DrsBaseTestCase, self).setUp()
+ creds = self.get_credentials()
+ creds.set_gensec_features(creds.get_gensec_features() | gensec.FEATURE_SEAL)
# connect to DCs
url_dc = samba.tests.env_get_var_value("DC1")