|
|
e3ffab |
From 8a76d55d4de3c7873089d168e4e02e6129bddce4 Mon Sep 17 00:00:00 2001
|
|
|
e3ffab |
From: Nathaniel McCallum <npmccallum@redhat.com>
|
|
|
e3ffab |
Date: Wed, 17 Dec 2014 14:05:42 +0000
|
|
|
e3ffab |
Subject: [PATCH] Expand the token auth/sync windows
|
|
|
e3ffab |
|
|
|
e3ffab |
This is a workaround for RHEL 7.1 to give similar defaults to the
|
|
|
e3ffab |
configurable window patch that landed upstream. At some future point,
|
|
|
e3ffab |
when this upstream patch is merged into RHEL, this patch should be
|
|
|
e3ffab |
abandoned.
|
|
|
e3ffab |
---
|
|
|
e3ffab |
daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c | 2 +-
|
|
|
e3ffab |
daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c | 2 +-
|
|
|
e3ffab |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
e3ffab |
|
|
|
e3ffab |
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c
|
|
|
e3ffab |
index 96c55f39ba2a9dc1e9fc80d5f7d46787803ece47..4db6e4797a0eab4d92ef65bef60bf48fe9110106 100644
|
|
|
e3ffab |
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c
|
|
|
e3ffab |
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c
|
|
|
e3ffab |
@@ -68,7 +68,7 @@
|
|
|
e3ffab |
#define IPAPWD_OP_ADD 1
|
|
|
e3ffab |
#define IPAPWD_OP_MOD 2
|
|
|
e3ffab |
|
|
|
e3ffab |
-#define OTP_VALIDATE_STEPS 3
|
|
|
e3ffab |
+#define OTP_VALIDATE_STEPS 10
|
|
|
e3ffab |
|
|
|
e3ffab |
extern Slapi_PluginDesc ipapwd_plugin_desc;
|
|
|
e3ffab |
extern void *ipapwd_plugin_id;
|
|
|
e3ffab |
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c
|
|
|
e3ffab |
index 0aef438023e7f23d7219273e9f5efd5572e73c3f..b40fc66256abf14c4f6d9609f600747797c3c0ed 100644
|
|
|
e3ffab |
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c
|
|
|
e3ffab |
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c
|
|
|
e3ffab |
@@ -40,7 +40,7 @@
|
|
|
e3ffab |
#include "../libotp/otp_token.h"
|
|
|
e3ffab |
#include "syncreq.h"
|
|
|
e3ffab |
|
|
|
e3ffab |
-#define OTP_SYNC_MAX_STEPS 25
|
|
|
e3ffab |
+#define OTP_SYNC_MAX_STEPS 100
|
|
|
e3ffab |
|
|
|
e3ffab |
bool sync_request_present(Slapi_PBlock *pb)
|
|
|
e3ffab |
{
|
|
|
e3ffab |
--
|
|
|
e3ffab |
2.1.0
|
|
|
e3ffab |
|