groupdb: make mapping_tdb compatible to mapping_ldb