From aaf61d9ae4a0052d22767f0cf6a194b437722f72 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 31 Mar 2008 11:24:10 +0200 Subject: groupdb: make mapping_tdb compatible to mapping_ldb mapping_ldb replaces the record if it already exists. I'm not sure if that a good thing, but for now both backends should provide the same behavior. metze (This used to be commit b313acdd31c97d032c3890764addf66c6b9a4d89) --- source3/groupdb/mapping_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/groupdb/mapping_tdb.c') diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c index ffd7d20ab8..c6d9735e11 100644 --- a/source3/groupdb/mapping_tdb.c +++ b/source3/groupdb/mapping_tdb.c @@ -143,7 +143,7 @@ static bool add_mapping_entry(GROUP_MAP *map, int flag) status = dbwrap_trans_store( db, string_term_tdb_data(key), - make_tdb_data((uint8_t *)buf, len), flag); + make_tdb_data((uint8_t *)buf, len), TDB_REPLACE); TALLOC_FREE(key); -- cgit