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:19:31 +0000 (16:19 +0100)
commitd2673253e3f3fead7b467b4e359482a4e8875fc9
treea47a183f2651ec4d90c7905fa3e0aea84525c15d
parent5b75201dbb9f2e6799fd5c3eee8da6230caee96c
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