s4:dsdb/tests: use GENSEC_SEAL for ldap connections in sam.py
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Jun 2016 13:08:43 +0000 (15:08 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 27 Jun 2016 03:00:16 +0000 (05:00 +0200)
This allows the tests to pass against a fully patched Windows Server.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/sam.py

index d5c27da2e61b0ea981ab9f5bf03997c2c919cc1e..bc5037bffc46505433459d6551dab1b57afe18b0 100755 (executable)
@@ -42,6 +42,7 @@ from samba.dcerpc.security import (DOMAIN_RID_USERS, DOMAIN_RID_ADMINS,
 
 from samba.dcerpc import security
 from samba.tests import delete_force
+from samba import gensec
 
 parser = optparse.OptionParser("sam.py [options] <host>")
 sambaopts = options.SambaOptions(parser)
@@ -62,6 +63,7 @@ host = args[0]
 
 lp = sambaopts.get_loadparm()
 creds = credopts.get_credentials(lp)
+creds.set_gensec_features(creds.get_gensec_features() | gensec.FEATURE_SEAL)
 
 class SamTests(samba.tests.TestCase):