smbd: use remote arch caching
authorRalph Boehme <slow@samba.org>
Wed, 13 Apr 2016 15:44:26 +0000 (17:44 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 3 May 2016 23:28:22 +0000 (01:28 +0200)
commita2c59d3e45e71b44d9135b35c1cf5522e04dec0e
treea5299caed772b524a40c8d1c5402f405bf7bc9a9
parent719e42294d33f9e40d6f21c85a59296921b4b297
smbd: use remote arch caching

We're using the client guid as gencache db key, so this can only be used
with SMB 2_10 or higher.

The idea is that whenever we get a direct SMB2 negprot, we can then try
to see if a value is cached for the client's guid.

When a user logs off the cache entry is deleted.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_negprot.c
source3/smbd/smb2_sesssetup.c