diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-10-20 19:28:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:02:20 -0500 |
commit | a9bd40549767c19207f3ec520a3e4346beeabef4 (patch) | |
tree | 055d67a79bdd2cb9098284fabdbf8a9cba6e95a9 /source4/lib/ldb/common | |
parent | 8d48ca63db0ec8dc47a386bd1fa38be2827755f3 (diff) | |
download | samba-a9bd40549767c19207f3ec520a3e4346beeabef4.tar.gz samba-a9bd40549767c19207f3ec520a3e4346beeabef4.tar.bz2 samba-a9bd40549767c19207f3ec520a3e4346beeabef4.zip |
r3093: - implment ldb_rename() and ldbrename
- add tests for ldbrename
- disable all tests which regenerate the index
(this is broken for me...the process hangs,
tridge we need to discuss that)
- link only the needed stuff to the ldb tools
- build ldbtest inside samba
metze
(This used to be commit 18552f4786c24e0019cc87726ef4c05365fe586e)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index c6e8d37671..fa4a64c19d 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -140,6 +140,17 @@ int ldb_delete(struct ldb_context *ldb, const char *dn) } /* + rename a record in the database +*/ +int ldb_rename(struct ldb_context *ldb, const char *olddn, const char *newdn) +{ + int ret; + ret = ldb->ops->rename_record(ldb, olddn, newdn); + ldb_debug(ldb, LDB_DEBUG_TRACE, "ldb_rename(%s,%s) -> %d\n", olddn, newdn); + return ret; +} + +/* return extended error information */ const char *ldb_errstring(struct ldb_context *ldb) |