diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-08-01 12:24:13 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-08-04 16:17:24 +1000 |
commit | 4ba8069e3d33dca53780521026c972425c1d66c5 (patch) | |
tree | f05854d1aa7fd48d3f9601dca4b4154ad5856134 /lib/ldb/include/ldb_module.h | |
parent | ed59f21f65bf9c16422a01068535bf4a862372d7 (diff) | |
download | samba-4ba8069e3d33dca53780521026c972425c1d66c5.tar.gz |
ldb: added ldb_dn_replace_components()
this allows you to replace the string part of a DN with the string
part from another DN. This is useful when you want to fix a DN that
has the right GUID but the wrong string part, because the target
object has moved.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'lib/ldb/include/ldb_module.h')
-rw-r--r-- | lib/ldb/include/ldb_module.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ldb/include/ldb_module.h b/lib/ldb/include/ldb_module.h index 6d6fff251cd..22d24dbdeae 100644 --- a/lib/ldb/include/ldb_module.h +++ b/lib/ldb/include/ldb_module.h @@ -340,5 +340,12 @@ int ldb_module_init_chain(struct ldb_context *ldb, struct ldb_module *module); */ int ldb_init_module(const char *version); +/* replace the components of a DN with those from another DN, without + * touching the extended components + * + * return true if successful and false if not + * if false is returned the dn may be marked invalid + */ +bool ldb_dn_replace_components(struct ldb_dn *dn, struct ldb_dn *new_dn); #endif |