tdb: commit 9b987e3923f7e8714acec6a2929435b1e6016645 from SAMBA