diff options
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c')
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c index 0aef43802..3a31529f7 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/syncreq.c @@ -40,8 +40,6 @@ #include "../libotp/otp_token.h" #include "syncreq.h" -#define OTP_SYNC_MAX_STEPS 25 - bool sync_request_present(Slapi_PBlock *pb) { LDAPControl **controls = NULL; @@ -92,7 +90,7 @@ bool sync_request_handle(const struct otp_config *cfg, Slapi_PBlock *pb, if (ber_scanf(ber, "}") != LBER_ERROR) { tokens = otp_token_find(cfg, user_dn, token_dn, true, NULL); if (tokens != NULL) { - success = otp_token_sync_berval(tokens, OTP_SYNC_MAX_STEPS, first, second); + success = otp_token_validate_berval(tokens, first, second); otp_token_free_array(tokens); } } |