python: Fix typo.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 11 Jan 2008 15:28:17 +0000 (16:28 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 11 Jan 2008 15:28:17 +0000 (16:28 +0100)
(This used to be commit d6b06fc03e37781f5f59b15cff8fe3ee8df63444)

source4/scripting/python/samba/__init__.py

index e85818016928de6d947e6049979333a18d962bc8..483929661dade3838081d6efaa0842e8585bd47a 100644 (file)
@@ -121,14 +121,14 @@ class Ldb(ldb.Ldb):
         # and the rest
         for msg in self.search(basedn, ldb.SCOPE_SUBTREE, 
                 "(&(|(objectclass=*)(distinguishedName=*))(!(distinguishedName=@BASEINFO)))", 
-                ["dn"]):
+                ["distinguishedName"]):
             try:
                 self.delete(msg.dn)
             except ldb.LdbError, (LDB_ERR_NO_SUCH_OBJECT, _):
                 # Ignor eno such object errors
                 pass
 
-        res = self.search(basedn, ldb.SCOPE_SUBTREE, "(&(|(objectclass=*)(distinguishedName=*))(!(distinguisedName=@BASEINFO)))", ["dn"])
+        res = self.search(basedn, ldb.SCOPE_SUBTREE, "(&(|(objectclass=*)(distinguishedName=*))(!(distinguishedName=@BASEINFO)))", ["distinguishedName"])
         assert len(res) == 0
 
     def erase_partitions(self):