From 438971e214e6f55f19148ed2afc03ec1c7066f65 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 25 Oct 2011 20:10:30 +0200 Subject: LDB/s4 - do not use the "(dn=...)" syntax on filters anymore Make it AD-compatible using "(distinguishedName=...)". Reviewed-by: Andrew Bartlett Signed-off-by: Andrew Bartlett --- source4/dsdb/tests/python/dirsync.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/dsdb/tests/python/dirsync.py') diff --git a/source4/dsdb/tests/python/dirsync.py b/source4/dsdb/tests/python/dirsync.py index c8027fc9a0..d6a21a9544 100755 --- a/source4/dsdb/tests/python/dirsync.py +++ b/source4/dsdb/tests/python/dirsync.py @@ -247,14 +247,14 @@ class SimpleDirsyncTests(DirsyncBaseTests): # We don't return an entry if asked for objectGUID res = self.ldb_admin.search(self.base_dn, - expression="dn=%s" % self.base_dn, + expression="(distinguishedName=%s)" % str(self.base_dn), attrs=["objectGUID"], controls=["dirsync:1:0:1"]) self.assertEquals(len(res.msgs), 0) # a request on the root of a NC didn't return parentGUID res = self.ldb_admin.search(self.base_dn, - expression="dn=%s" % self.base_dn, + expression="(distinguishedName=%s)" % str(self.base_dn), attrs=["name"], controls=["dirsync:1:0:1"]) self.assertTrue(res.msgs[0].get("objectGUID") != None) @@ -319,21 +319,21 @@ class SimpleDirsyncTests(DirsyncBaseTests): def test_dirsync_with_controls(self): """Check that dirsync return correct informations when dealing with the NC""" res = self.ldb_admin.search(self.base_dn, - expression="(dn=%s)" % str(self.base_dn), + expression="(distinguishedName=%s)" % str(self.base_dn), attrs=["name"], controls=["dirsync:1:0:10000", "extended_dn:1", "show_deleted:1"]) def test_dirsync_basenc(self): """Check that dirsync return correct informations when dealing with the NC""" res = self.ldb_admin.search(self.base_dn, - expression="(dn=%s)" % str(self.base_dn), + expression="(distinguishedName=%s)" % str(self.base_dn), attrs=["name"], controls=["dirsync:1:0:10000"]) self.assertEqual(len(res.msgs), 1) self.assertEqual(len(res.msgs[0]), 3) res = self.ldb_admin.search(self.base_dn, - expression="(dn=%s)" % str(self.base_dn), + expression="(distinguishedName=%s)" % str(self.base_dn), attrs=["ntSecurityDescriptor"], controls=["dirsync:1:0:10000"]) self.assertEqual(len(res.msgs), 1) -- cgit