\n");
printf("Options:\n");
printf(" -H ldb_url choose the database (or $LDB_URL)\n");
printf(" -o options pass options like modules to activate\n");
printf(" e.g: -o modules:timestamps\n");
printf("\n");
printf("Renames records in a ldb\n\n");
exit(1);
}
int main(int argc, const char **argv)
{
struct ldb_context *ldb;
int ret;
struct ldb_cmdline *options;
const struct ldb_dn *dn1, *dn2;
ldb_global_init();
ldb = ldb_init(NULL, NULL);
options = ldb_cmdline_process(ldb, argc, argv, usage);
if (options->argc < 2) {
usage();
}
dn1 = ldb_dn_explode(ldb, options->argv[0]);
dn2 = ldb_dn_explode(ldb, options->argv[1]);
ret = ldb_rename(ldb, dn1, dn2);
if (ret == 0) {
printf("Renamed 1 record\n");
} else {
printf("rename of '%s' to '%s' failed - %s\n",
options->argv[0], options->argv[1], ldb_errstring(ldb));
}
talloc_free(ldb);
return ret;
}
3ї9Ա;~.2_ӍKe1P5И9#QMGr5~Dbs óDj͔:1p71'W/I5k\:grY|q(tDvLh$ -qH7 状)x-@",n~@/Юv(ʮ|ըGy9 F9?Vj"{:n'^)pmo}1(Q]d#8U?Ma`'1d (?y_|Vk
-KpxΰAvB:ӓQLVPUFK5;@75R;qebj@J}YK&r,%@3ʶPն|2gf0ǖiy59%aj,R.JRُ78bqE*
7`E-bL<** nZy5i:5Yg1%?n÷C9Shph4$6bŞoFgJ&HnW85¾Aa o$Xƛ,q$Pd(ɓ*Ѣ.!22e nEKjO=HB1!f'=td݄
?1z,n.cx2Po$ȫv]"q4$}}HnYヸŤpM:Bz
.eH>*9 ƿªb*i.ށ'nM!SU}76:ErFyװAi6u\|:EkizD. P7};BPGP"F۽6"gV*VEZ1~ R_T)k9ٖh:7
U
1K0OZ9ZK3nbpÔr`:Þ!'-fϥB蓲;1eFe|e";)zǁ^w5F9@Pdpd}
rWlY|. eŏU@A$L[^q)f>
KfWR?u$]4I"XOJL!jMr*o5@7(c~H~<>e|eN:w-6\R\
h%Gx3Y/ThRjb#