diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-03-31 11:24:10 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-12 10:01:42 +0200 |
commit | aaf61d9ae4a0052d22767f0cf6a194b437722f72 (patch) | |
tree | fccd5cde25649ee208cbaf0021527a66401d1329 /source3/groupdb | |
parent | 37fbe55eea3cbd7fc74ef2da84549eecfa55be8c (diff) | |
download | samba-aaf61d9ae4a0052d22767f0cf6a194b437722f72.tar.gz samba-aaf61d9ae4a0052d22767f0cf6a194b437722f72.tar.bz2 samba-aaf61d9ae4a0052d22767f0cf6a194b437722f72.zip |
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)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping_tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |