diff options
author | CrÃstian Deives <cristiandeives@gmail.com> | 2009-11-23 15:47:51 -0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-11-30 20:22:13 +1100 |
commit | bed9efa6cda17ecca91bdf71227ec656b94dcf94 (patch) | |
tree | 01dded56aa27f3814e97aebc7d172be02c3cb770 /source4/lib/ldb/ldb_map | |
parent | 7ca2ceb333de6c4daad10890b3e3022e1930235c (diff) | |
download | samba-bed9efa6cda17ecca91bdf71227ec656b94dcf94.tar.gz samba-bed9efa6cda17ecca91bdf71227ec656b94dcf94.tar.bz2 samba-bed9efa6cda17ecca91bdf71227ec656b94dcf94.zip |
s4-ldb: changed ldb_msg_add_dn() to ldb_msg_add_linearized_dn()
this makes the usage clearer
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/lib/ldb/ldb_map')
-rw-r--r-- | source4/lib/ldb/ldb_map/ldb_map_inbound.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_map/ldb_map_inbound.c b/source4/lib/ldb/ldb_map/ldb_map_inbound.c index 11ec9d2ced..5a948cff69 100644 --- a/source4/lib/ldb/ldb_map/ldb_map_inbound.c +++ b/source4/lib/ldb/ldb_map/ldb_map_inbound.c @@ -425,7 +425,9 @@ int map_add(struct ldb_module *module, struct ldb_request *req) /* Store remote DN in 'IS_MAPPED' */ /* TODO: use GUIDs here instead */ - if (ldb_msg_add_dn(ac->local_msg, IS_MAPPED, remote_msg->dn) != 0) { + ret = ldb_msg_add_linearized_dn(ac->local_msg, IS_MAPPED, + remote_msg->dn); + if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -555,8 +557,9 @@ static int map_modify_do_local(struct map_context *ac) LDB_FLAG_MOD_ADD, NULL) != 0) { return LDB_ERR_OPERATIONS_ERROR; } - if (ldb_msg_add_dn(ac->local_msg, IS_MAPPED, - ac->remote_req->op.mod.message->dn) != 0) { + ret = ldb_msg_add_linearized_dn(ac->local_msg, IS_MAPPED, + ac->remote_req->op.mod.message->dn); + if (ret != 0) { return LDB_ERR_OPERATIONS_ERROR; } |