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