From: Stefan Metzmacher Date: Thu, 24 Jan 2013 12:07:32 +0000 (+0100) Subject: tests/sec_descriptor: the default owner behavior depends on domainControllerFunctiona... X-Git-Tag: tevent-0.9.18~400 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd5cb843b4d698ed2fedf635a020ff978ae40558;p=thirdparty%2Fsamba.git tests/sec_descriptor: the default owner behavior depends on domainControllerFunctionality (bug #9481) Not on the domainFunctionality. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/tests/python/sec_descriptor.py b/source4/dsdb/tests/python/sec_descriptor.py index 78cd052a939..10d37187a56 100755 --- a/source4/dsdb/tests/python/sec_descriptor.py +++ b/source4/dsdb/tests/python/sec_descriptor.py @@ -313,10 +313,10 @@ class OwnerGroupDescriptorTests(DescriptorTests): "175" : "O:DAG:DA", }, } - # Discover 'msDS-Behavior-Version' - res = self.ldb_admin.search(base=self.base_dn, expression="distinguishedName=%s" % self.base_dn, \ - attrs=['msDS-Behavior-Version']) - res = int(res[0]['msDS-Behavior-Version'][0]) + # Discover 'domainControllerFunctionality' + res = self.ldb_admin.search(base="", scope=SCOPE_BASE, + attrs=['domainControllerFunctionality']) + res = int(res[0]['domainControllerFunctionality'][0]) if res < DS_DOMAIN_FUNCTION_2008: self.DS_BEHAVIOR = "ds_behavior_win2003" else: