1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-08 16:23:49 +03:00

r11363: fixed a problem with provisioning when hklm already exists (the

problem is really caused by hklm not having objectclass attributes on
its records, but this is a workaround)
This commit is contained in:
Andrew Tridgell
2005-10-28 07:00:52 +00:00
committed by Gerald (Jerry) Carter
parent fb313c19c6
commit 62d5253a03

View File

@@ -157,7 +157,7 @@ function ldb_erase(ldb)
for (i=0;i<res.length;i++) { for (i=0;i<res.length;i++) {
ldb.del(res[i].dn); ldb.del(res[i].dn);
} }
res = ldb.search("(objectclass=*)", attrs); res = ldb.search("(|(objectclass=*)(dn=*))", attrs);
if (res.length != 0) { if (res.length != 0) {
ldb_delete(ldb); ldb_delete(ldb);
return; return;
@@ -165,7 +165,6 @@ function ldb_erase(ldb)
assert(res.length == 0); assert(res.length == 0);
} }
/* /*
setup a ldb in the private dir setup a ldb in the private dir
*/ */