summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorCrístian Deives <cristiandeives@gmail.com>2009-11-19 16:03:59 -0200
committerAndrew Tridgell <tridge@samba.org>2009-11-20 14:39:01 +1100
commit1169dd3b50dfefa59b56cd1897bcd0b6c2ffb3be (patch)
tree5eb2495a43fc271c05d363ede0a7496169d2f6ee /source4/dsdb/samdb/ldb_modules
parentf3f0c8e2ce9fe315848d15eeb289eae9fb525a3a (diff)
downloadsamba-1169dd3b50dfefa59b56cd1897bcd0b6c2ffb3be.tar.gz
samba-1169dd3b50dfefa59b56cd1897bcd0b6c2ffb3be.tar.bz2
samba-1169dd3b50dfefa59b56cd1897bcd0b6c2ffb3be.zip
added new function "ldb_msg_add_dn"
a helper function to a DN element to an ldb_msg using ldb_msg_add_string. Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/extended_dn_out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c
index a3e4f57f4b..1249a9cdfa 100644
--- a/source4/dsdb/samdb/ldb_modules/extended_dn_out.c
+++ b/source4/dsdb/samdb/ldb_modules/extended_dn_out.c
@@ -377,8 +377,9 @@ static int extended_callback(struct ldb_request *req, struct ldb_reply *ares,
ret = ldb_msg_add_steal_string(ares->message, "distinguishedName",
ldb_dn_get_extended_linearized(ares->message, ares->message->dn, ac->extended_type));
} else {
- ret = ldb_msg_add_string(ares->message, "distinguishedName",
- ldb_dn_get_linearized(ares->message->dn));
+ ret = ldb_msg_add_dn(ares->message,
+ "distinguishedName",
+ ares->message->dn);
}
if (ret != LDB_SUCCESS) {
ldb_oom(ldb);