mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
tests/sec_descriptor: the default owner behavior depends on domainControllerFunctionality (bug #9481)
Not on the domainFunctionality. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2413962d53
commit
cd5cb843b4
@ -313,10 +313,10 @@ class OwnerGroupDescriptorTests(DescriptorTests):
|
|||||||
"175" : "O:DAG:DA",
|
"175" : "O:DAG:DA",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
# Discover 'msDS-Behavior-Version'
|
# Discover 'domainControllerFunctionality'
|
||||||
res = self.ldb_admin.search(base=self.base_dn, expression="distinguishedName=%s" % self.base_dn, \
|
res = self.ldb_admin.search(base="", scope=SCOPE_BASE,
|
||||||
attrs=['msDS-Behavior-Version'])
|
attrs=['domainControllerFunctionality'])
|
||||||
res = int(res[0]['msDS-Behavior-Version'][0])
|
res = int(res[0]['domainControllerFunctionality'][0])
|
||||||
if res < DS_DOMAIN_FUNCTION_2008:
|
if res < DS_DOMAIN_FUNCTION_2008:
|
||||||
self.DS_BEHAVIOR = "ds_behavior_win2003"
|
self.DS_BEHAVIOR = "ds_behavior_win2003"
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user