]> git.sur5r.net Git - openldap/commitdiff
Fix setting authTimestamp on non-TOTP binds
authorHoward Chu <hyc@openldap.org>
Thu, 16 Jul 2015 02:28:37 +0000 (03:28 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 16 Jul 2015 02:28:37 +0000 (03:28 +0100)
contrib/slapd-modules/passwd/totp/slapd-totp.c

index 14f4d92c00d7db194098c282b9ef76378e2567cb..5596b3d7fa715509d25bfa7f4d9d014e98e98858 100644 (file)
@@ -583,7 +583,7 @@ totp_bind_response( Operation *op, SlapReply *rs )
                slap_timestamp( &now, &timestamp );
 
                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;