From: Stefan Metzmacher Date: Wed, 22 Jun 2016 13:08:43 +0000 (+0200) Subject: s4:dsdb/tests: use GENSEC_SEAL for ldap connections in sam.py X-Git-Tag: tdb-1.3.10~688 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a73b5f1989923000ac308beac43e98fce2bd770;p=thirdparty%2Fsamba.git s4:dsdb/tests: use GENSEC_SEAL for ldap connections in sam.py This allows the tests to pass against a fully patched Windows Server. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/tests/python/sam.py b/source4/dsdb/tests/python/sam.py index d5c27da2e61..bc5037bffc4 100755 --- a/source4/dsdb/tests/python/sam.py +++ b/source4/dsdb/tests/python/sam.py @@ -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] ") 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):