From: Howard Chu Date: Thu, 16 Jul 2015 02:28:37 +0000 (+0100) Subject: Fix setting authTimestamp on non-TOTP binds X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a8491a63e633d5f35949cddd35d933edb1013d74;p=openldap Fix setting authTimestamp on non-TOTP binds --- 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;