s3:winbind: in idmap_tdb2_id_to_sid(), use transaction wrapped stores.
commita9bea871c963710fe06822dad56aa31029b59a1a
authorMichael Adam <obnox@samba.org>
Wed, 29 Jul 2009 11:36:18 +0000 (29 13:36 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 29 Jul 2009 14:26:20 +0000 (29 16:26 +0200)
tree04683f4d5acc6bb03fdf5cbd58a6294564041dcc
parent9e20e178b3500fe4a32f4b4b1651a3514484fd28
s3:winbind: in idmap_tdb2_id_to_sid(), use transaction wrapped stores.

When a mapping is not found, then the idmap script is called (if defined).
When this gives a reply for the desired id, this reply is stored in the db.

This patch wraps theses two store operations into a transaction by re-using
the idmap_tdb2_set_mapping_action() function previously defined
for idmap_tdb2_set_mapping().

Michael
source3/winbindd/idmap_tdb2.c