idmap tdb2: fix broken logic in tdb2_delete_bystring().
commit134ea912781ba8da276217d6d663ab1967407f3e
authorMichael Adam <obnox@samba.org>
Wed, 6 Aug 2008 20:43:27 +0000 (6 22:43 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:07 +0000 (13 11:54 +0200)
treea1889ecf37b2b39df5e6ad541084c55307ef423a
parent6afa8e573e1afe93fb126f851aaf6b0c0cd8d75a
idmap tdb2: fix broken logic in tdb2_delete_bystring().

1. use the return value that idmap_tdb2_open_perm_db() gives us
2. don't delete frep the local db if deleting from the perm db failed.
3. fix wrong interpretation of return value of the local delete

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