mirror of
https://github.com/samba-team/samba.git
synced 2025-11-06 08:23:50 +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:
committed by
Gerald (Jerry) Carter
parent
fb313c19c6
commit
62d5253a03
@@ -157,7 +157,7 @@ function ldb_erase(ldb)
|
||||
for (i=0;i<res.length;i++) {
|
||||
ldb.del(res[i].dn);
|
||||
}
|
||||
res = ldb.search("(objectclass=*)", attrs);
|
||||
res = ldb.search("(|(objectclass=*)(dn=*))", attrs);
|
||||
if (res.length != 0) {
|
||||
ldb_delete(ldb);
|
||||
return;
|
||||
@@ -165,7 +165,6 @@ function ldb_erase(ldb)
|
||||
assert(res.length == 0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
setup a ldb in the private dir
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user