1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

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)
This commit is contained in:
Stefan Metzmacher 2008-03-31 11:24:10 +02:00
parent 37fbe55eea
commit aaf61d9ae4

View File

@ -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);