From b8016589ca13b8ca2a669bebf4adfc6917fc49e7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 16 Jul 2015 03:28:37 +0100 Subject: [PATCH] Fix setting authTimestamp on non-TOTP binds --- contrib/slapd-modules/passwd/totp/slapd-totp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/slapd-modules/passwd/totp/slapd-totp.c b/contrib/slapd-modules/passwd/totp/slapd-totp.c index 14f4d92c00..5596b3d7fa 100644 --- a/contrib/slapd-modules/passwd/totp/slapd-totp.c +++ b/contrib/slapd-modules/passwd/totp/slapd-totp.c @@ -583,7 +583,7 @@ totp_bind_response( Operation *op, SlapReply *rs ) slap_timestamp( &now, ×tamp ); m = ch_calloc( sizeof(Modifications), 1 ); - m->sml_op = LDAP_MOD_ADD; + m->sml_op = LDAP_MOD_REPLACE; m->sml_flags = 0; m->sml_type = ad_authTimestamp->ad_cname; m->sml_desc = ad_authTimestamp; -- 2.39.5