s3:winbind: in idmap_tdb2_sid_to_id(), use transaction wrapped stores.
authorMichael Adam <obnox@samba.org>
Wed, 29 Jul 2009 11:43:29 +0000 (13:43 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 29 Jul 2009 14:26:20 +0000 (16:26 +0200)
commitd916e56c4c9dc729dc88418f75ebbbf943597476
tree41c51f61cfc653d06c20a211d075cdd1b576a800
parenta9bea871c963710fe06822dad56aa31029b59a1a
s3:winbind: in idmap_tdb2_sid_to_id(), 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 sid, 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