s3:smbd: make idmap cache persistent for "ldapsam:trusted".
This stores the mappings found in the idmap cache (which lives
inside gencache). This cache is already read in sid_to_Xid()
and Xid_to_sid() for ldapsam:trusted, this fills the opposite
direction, massively reducing the number of ldap roundtrips
across smbd restarts.
Michael
(cherry picked from commit
d5537cbbf931f0bca519371bfd084fb0051acd57)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
c7220ff3a8281867ffc1a3bcaa992ca9eafba6ed)