summaryrefslogtreecommitdiff
path: root/source4/torture/drs
diff options
context:
space:
mode:
authorTim Beale <timbeale@catalyst.net.nz>2017-06-07 11:13:52 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-07-28 00:25:15 +0200
commitdddcf80660dd883ee24a1dfa13fd5cfe4cd49e62 (patch)
tree873ffc22445a1269a40ae1dfe721c0ee055f6af5 /source4/torture/drs
parent475a3206461f5458059f8f530b45f0b1ae636739 (diff)
downloadsamba-dddcf80660dd883ee24a1dfa13fd5cfe4cd49e62.tar.gz
getnc_exop.py: Fix typo in function name
This drove me crazy when I tried to search for it. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/torture/drs')
-rw-r--r--source4/torture/drs/python/drs_base.py2
-rw-r--r--source4/torture/drs/python/getnc_exop.py14
2 files changed, 8 insertions, 8 deletions
diff --git a/source4/torture/drs/python/drs_base.py b/source4/torture/drs/python/drs_base.py
index 9abfa159a02..9e258bbd23f 100644
--- a/source4/torture/drs/python/drs_base.py
+++ b/source4/torture/drs/python/drs_base.py
@@ -184,7 +184,7 @@ class DrsBaseTestCase(SambaToolCmdTest):
utdv.cursors = cursors
return (hwm, utdv)
- def _get_indentifier(self, ldb_conn, dn):
+ def _get_identifier(self, ldb_conn, dn):
res = ldb_conn.search(dn, scope=ldb.SCOPE_BASE,
attrs=["objectGUID", "objectSid"])
id = drsuapi.DsReplicaObjectIdentifier()
diff --git a/source4/torture/drs/python/getnc_exop.py b/source4/torture/drs/python/getnc_exop.py
index 26786be1c1d..caa782658fd 100644
--- a/source4/torture/drs/python/getnc_exop.py
+++ b/source4/torture/drs/python/getnc_exop.py
@@ -146,20 +146,20 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
"dn": ou1,
"objectclass": "organizationalUnit"
})
- ou1_id = self._get_indentifier(self.ldb_dc1, ou1)
+ ou1_id = self._get_identifier(self.ldb_dc1, ou1)
ou2 = "OU=get_anc2,%s" % ou1
self.ldb_dc1.add({
"dn": ou2,
"objectclass": "organizationalUnit"
})
- ou2_id = self._get_indentifier(self.ldb_dc1, ou2)
+ ou2_id = self._get_identifier(self.ldb_dc1, ou2)
dc3 = "CN=test_anc_dc_%u,%s" % (random.randint(0, 4294967295), ou2)
self.ldb_dc1.add({
"dn": dc3,
"objectclass": "computer",
"userAccountControl": "%d" % (samba.dsdb.UF_ACCOUNTDISABLE | samba.dsdb.UF_SERVER_TRUST_ACCOUNT)
})
- dc3_id = self._get_indentifier(self.ldb_dc1, dc3)
+ dc3_id = self._get_identifier(self.ldb_dc1, dc3)
req8 = self._exop_req8(dest_dsa=None,
invocation_id=self.ldb_dc1.get_invocation_id(),
@@ -201,20 +201,20 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
"dn": ou1,
"objectclass": "organizationalUnit"
})
- ou1_id = self._get_indentifier(self.ldb_dc1, ou1)
+ ou1_id = self._get_identifier(self.ldb_dc1, ou1)
ou2 = "OU=get_anc2,%s" % ou1
self.ldb_dc1.add({
"dn": ou2,
"objectclass": "organizationalUnit"
})
- ou2_id = self._get_indentifier(self.ldb_dc1, ou2)
+ ou2_id = self._get_identifier(self.ldb_dc1, ou2)
dc3 = "CN=test_anc_dc_%u,%s" % (random.randint(0, 4294967295), ou2)
self.ldb_dc1.add({
"dn": dc3,
"objectclass": "computer",
"userAccountControl": "%d" % (samba.dsdb.UF_ACCOUNTDISABLE | samba.dsdb.UF_SERVER_TRUST_ACCOUNT)
})
- dc3_id = self._get_indentifier(self.ldb_dc1, dc3)
+ dc3_id = self._get_identifier(self.ldb_dc1, dc3)
(hwm1, utdv1) = self._check_replication([ou1,ou2,dc3],
drsuapi.DRSUAPI_DRS_WRIT_REP)
@@ -325,7 +325,7 @@ class DrsReplicaSyncTestCase(drs_base.DrsBaseTestCase):
"dn": cn3,
"objectclass": "container",
})
- cn3_id = self._get_indentifier(self.ldb_dc1, cn3)
+ cn3_id = self._get_identifier(self.ldb_dc1, cn3)
(hwm5, utdv5) = self._check_replication([dc3,ou1,ou2,self.ou,cn3],
drsuapi.DRSUAPI_DRS_WRIT_REP)