From: Stefan Metzmacher Date: Mon, 31 Mar 2008 09:24:10 +0000 (+0200) Subject: groupdb: make mapping_tdb compatible to mapping_ldb X-Git-Tag: samba-3.3.0pre1~2727 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b313acdd31c97d032c3890764addf66c6b9a4d89;p=thirdparty%2Fsamba.git 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 --- diff --git a/source/groupdb/mapping_tdb.c b/source/groupdb/mapping_tdb.c index ffd7d20ab8d..c6d9735e119 100644 --- a/source/groupdb/mapping_tdb.c +++ b/source/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);