s3:winbind add timeouts to winbind cache
commit1d826c24fd4fa9923f79761d00a0e906fab29c2c
authorChristian Ambach <christian.ambach@de.ibm.com>
Thu, 4 Nov 2010 16:10:25 +0000 (4 17:10 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 8 Nov 2010 13:38:54 +0000 (8 14:38 +0100)
treeda4393bd6867a10711b735e279d9e9789912a17c
parent070664c4f790687f319b301b8ff998a0290f829c
s3:winbind add timeouts to winbind cache

This adds a timeout value to cache entries and the NDR records
in the winbind cache.

The previous approach of just comparing the sequence number has some issues,
e.g. when retrying a wbinfo -n operation for a user in a not yet trusted
domain was always failing even after the trusted domain was added.

The new approach compares sequence number and timeout value to
determine if a cache entry is still valid or not.

I increased the cache version number so an old cache will be wiped
automatically after upgrade.
source3/winbindd/winbindd_cache.c