idmap tdb2: fix broken logic in tdb2_store_bystring().
authorMichael Adam <obnox@samba.org>
Wed, 6 Aug 2008 20:33:58 +0000 (22:33 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:07 +0000 (11:54 +0200)
commit6afa8e573e1afe93fb126f851aaf6b0c0cd8d75a
tree915b92ca7fe2111e8c28852bcd188553855b1c14
parentebaf208fc363ba4a53fc61523aab2e6392738aa1
idmap tdb2: fix broken logic in tdb2_store_bystring().

1. use the return value that idmap_tdb2_open_perm_db() gives us
2. don't write to the local db if writing to the perm db failed.
3. fix wrong interpretation of return value of the local store

Michael
(This used to be commit be8c6b4f2f40014313899b5cbc1da9d390d94fee)
source3/winbindd/idmap_tdb2.c