mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
ldb: Fix error string when renaming to an DN that already exists
We were printing the DN renamed from, not the DN being renamed to. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
891abcf78f
commit
2f44f370d8
@ -1054,7 +1054,7 @@ static int ltdb_rename(struct ltdb_context *ctx)
|
||||
talloc_free(tdb_key.dptr);
|
||||
ldb_asprintf_errstring(ldb_module_get_ctx(module),
|
||||
"Entry %s already exists",
|
||||
ldb_dn_get_linearized(msg->dn));
|
||||
ldb_dn_get_linearized(req->op.rename.newdn));
|
||||
/* finding the new record already in the DB is an error */
|
||||
talloc_free(msg);
|
||||
return LDB_ERR_ENTRY_ALREADY_EXISTS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user