Working on it -- if all goes well today, I should be able to upload
something to code RSN... sorry about the wait!
The answer, btw, is a small wrapper library called libnss_cache.so
which we haven't previously released.
cheers,
-V
untar it, than you can either build a deb or just make the lib and
distribute/package it yourself. see the 'BUILD' doc -- it's raw,
but it works. the library has been pretty stable in my experience, we
fixed the only bug we found so far (had to rewind a pointer skipping
around for large map entries). as far as wrappers go, it's not
terribly complex so it simple outta keep the bugs down.
in nsswitch.conf, you can append 'cache' as an nss source, e.g.
passwd: files cache
shadow: files cache
group: files cache
let me know if there are any problems or you have yearnings for an rpm
or something.
I'll upload it to svn as well, you are welcome to send patches of
course :) *grin*
cheers,
-V
also, I just worked on a suite of patches aimed at memory
efficiency... cut down the memory footprint for very large maps by
something on the order of 3x, depending. I wasn't focused on speed
(will do that later) but as a side effect I definately saw a speed
boost for full and partial updates. don't know the size of your maps,
but hey, it never hurts. I'll get it uploaded this week.
I think I should upload a prebuilt stock deb and rpm, as well as see
about contributing a deb package upstream. it should make life a lot
easier if this is just an "apt-get" away for more folks -- add that to
your gentoo ebuild and that's a good chunk covered. maybe this
weekend, heh :)
cheers,
-V