The attached patch should fix a couple of bugs introduced with the
changes to use gencache for idmap.
It compiles, not done any extensive testing.

--
Simo Sorce
Samba Team GPL Compliance Officer
Senior Software Engineer at Red Hat Inc.