source4 samr: cache samr_QueryDisplayInfo results
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 9 Oct 2018 20:20:25 +0000 (09:20 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 20 Nov 2018 21:14:17 +0000 (22:14 +0100)
commit10efdac356dcb15c7ab233412bafc5853effc31a
tree8b00d232ecce42ac5b505d6391900d179ff949ec
parentd9f7b6d63f9c3622c857ccb80092f6f1c21d1431
source4 samr: cache samr_QueryDisplayInfo results

Add a cache of GUID's that matched the last samr_QueryDisplayInfo made on a
domain handle.  The cache is cleared if the requested start index is
zero, or if the level does not match that in the cache.

The cache is maintained in the guid_caches array of the dcesrv_handle.

Note: that currently this cache exists for the lifetime of the RPC
      handle.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail.d/samr [deleted file]
source4/rpc_server/samr/dcesrv_samr.c
source4/rpc_server/samr/dcesrv_samr.h