s3:smbd: make idmap cache persistent for "ldapsam:trusted".
authorMichael Adam <obnox@samba.org>
Fri, 13 Nov 2009 14:51:33 +0000 (15:51 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:40:46 +0000 (11:40 +0100)
commita822e7e66d97555becf8280f5ee905dcaead0507
treee883f523902ebb40fc0be0c97d81ac17930eee4b
parentc5c8d03af22d9c278f2cf31be5cab8c91a09061d
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)
source3/passdb/pdb_ldap.c