s3:smbd: make idmap cache persistent for "ldapsam:trusted".
commita635050ef60bfc4c3e3820132cfc85f41bad4e57
authorMichael Adam <obnox@samba.org>
Fri, 13 Nov 2009 14:51:33 +0000 (13 15:51 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Feb 2010 13:46:53 +0000 (15 14:46 +0100)
treece04546262de948136d4d5eac5661834730c5f94
parent12f4e9a31a37446660d9b4eb4a2a958759b4b8df
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)
source3/passdb/pdb_ldap.c