ldb_tdb: Use ltdb_key_msg() in ltdb_delete_noindex()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 17 Aug 2017 00:53:34 +0000 (12:53 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 22 Sep 2017 19:20:22 +0000 (21:20 +0200)
This allows the optional use of GUID based TDB key.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_tdb.c

index 2fe9ae5bec81fce21d9b0fd9d47bad6db9044b09..59e554363d86e2541a7b4d8854eb67be849c96fd 100644 (file)
@@ -563,7 +563,7 @@ int ltdb_delete_noindex(struct ldb_module *module,
                return LDB_ERR_UNWILLING_TO_PERFORM;
        }
 
-       tdb_key = ltdb_key_dn(module, tdb_key_ctx, msg->dn);
+       tdb_key = ltdb_key_msg(module, tdb_key_ctx, msg);
        if (!tdb_key.dptr) {
                TALLOC_FREE(tdb_key_ctx);
                return LDB_ERR_OTHER;