idmap tdb2: fix broken logic in tdb2_store_bystring().
commitbe8c6b4f2f40014313899b5cbc1da9d390d94fee
authorMichael Adam <obnox@samba.org>
Wed, 6 Aug 2008 20:33:58 +0000 (6 22:33 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:07 +0000 (13 11:54 +0200)
tree9ca3db5da1cf842b7bdaa24b9c22195f3c962e78
parentff413a4614c8b272a34b2a9e56a329a8e8749a34
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
source/winbindd/idmap_tdb2.c