libcli/auth: try to use the current timestamp creds->sequence
authorStefan Metzmacher <metze@samba.org>
Tue, 17 Dec 2013 18:55:12 +0000 (19:55 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 24 Dec 2013 12:18:18 +0000 (13:18 +0100)
commite6afeae69537f55ed187b28b60ad29b9e237ec6e
tree32ab4ef3dae54eaa760d914839b71a13b7e9360a
parent636daac3b7b08ccb8845dab060157918d296ef67
libcli/auth: try to use the current timestamp creds->sequence

If the last usage of netlogon_creds_client_authenticator()
is in the past try to use the current timestamp and increment
more than just 2.

If we use netlogon_creds_client_authenticator() a lot within a
second, we increment keep incrementing by 2.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Dec 24 13:18:18 CET 2013 on sn-devel-104
libcli/auth/credentials.c