s4:rpc_server/netlogon: keep a global challenge table
authorStefan Metzmacher <metze@samba.org>
Thu, 17 Jul 2014 12:20:58 +0000 (14:20 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 19 Jul 2014 08:25:05 +0000 (10:25 +0200)
commit321ebc99b5a00f82265aee741a48aa84b214d6e8
treeaaa798668236062cdb76a256a43487bd96f1a447
parent45807028d478c082fef6f3a3d5a142d96d63fb50
s4:rpc_server/netlogon: keep a global challenge table

Some clients call netr_ServerReqChallenge() and netr_ServerAuthenticate3()
on different connections. This works against Windows DCs as they
have a global challenge table.

A VMware provisioning task for Windows VMs seemy to rely on this behavior.

As a fallback we're storing the challenge in a global memcache with a fixed
size. This should allow these strange clients to work against a
Samba AD DC.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10723

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/netlogon/dcerpc_netlogon.c