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)
committerMichael Adam <obnox@samba.org>
Fri, 13 Nov 2009 15:20:01 +0000 (16:20 +0100)
commitd5537cbbf931f0bca519371bfd084fb0051acd57
treee883f523902ebb40fc0be0c97d81ac17930eee4b
parentafb06a8af3c4e86ef9960c8beb19a22f5fd0f3c2
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
source3/passdb/pdb_ldap.c