[email protected] wrote:
> Provider slapd configuration (partial):
> serverID 000
> database      bdb
> suffix                "dc=authentx"
> rootdn          "SUPPRESSED"
> rootpw          SUPPRESSED
> directory     /authentx/db/ldap/authentx-sync1
>
> overlay syncprov
> syncprov-checkpoint 100 15
> syncprov-sessionlog 5000

This patch will probably work:

diff -u -r1.309 syncprov.c
--- syncprov.c  21 Jan 2010 12:33:21 -0000      1.309
+++ syncprov.c  12 Apr 2010 01:33:02 -0000
@@ -1878,7 +1878,7 @@
                }

                /* Add any log records */
-               if ( si->si_logs && op->o_tag != LDAP_REQ_ADD ) {
+               if ( si->si_logs ) {
                        syncprov_add_slog( op );
                }
  leave:                ldap_pvt_thread_mutex_unlock( &si->si_resp_mutex );


But I have not tested it. The session log was originally only intended to 
record deletes, since they require the most work to find otherwise. Recording 
adds is just a shortcut since the original behavior works as designed.
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/


Reply via email to