diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-08-08 14:34:14 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-08-29 07:23:28 +0200 |
commit | 607ba1a2036627d1a90c0ac03265221571dc6899 (patch) | |
tree | a3ee41026df04822633a80ac6a28307b3e520eba /source4/torture/drs | |
parent | 53512529beb3b05044cba3363eecb475ce36d610 (diff) | |
download | samba-607ba1a2036627d1a90c0ac03265221571dc6899.tar.gz |
s4-drsuapi: Refuse to replicate an NC is that not actually an NC
This prevents replication of an OU, you must replicate a whole NC per Windows 2012R2
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source4/torture/drs')
-rw-r--r-- | source4/torture/drs/python/getnc_unpriv.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source4/torture/drs/python/getnc_unpriv.py b/source4/torture/drs/python/getnc_unpriv.py index 61ecefa2ea6..dd6142aa816 100644 --- a/source4/torture/drs/python/getnc_unpriv.py +++ b/source4/torture/drs/python/getnc_unpriv.py @@ -102,14 +102,9 @@ class DrsReplicaSyncUnprivTestCase(drs_base.DrsBaseTestCase): user with the correct GET_CHANGES rights """ - ou1 = "OU=single_obj,%s" % self.ou - self.ldb_dc1.add({ - "dn": ou1, - "objectclass": "organizationalUnit" - }) req8 = self._exop_req8(dest_dsa=None, invocation_id=self.ldb_dc1.get_invocation_id(), - nc_dn_str=ou1, + nc_dn_str=self.ldb_dc1.get_default_basedn(), exop=drsuapi.DRSUAPI_EXOP_NONE, replica_flags=drsuapi.DRSUAPI_DRS_WRIT_REP) (level, ctr) = self.user_drs.DsGetNCChanges(self.user_drs_handle, 8, req8) |