]> git.sur5r.net Git - openldap/commitdiff
ITS#4788 don't return auditContext attr on syncrepl searches
authorHoward Chu <hyc@openldap.org>
Sat, 23 Dec 2006 22:10:34 +0000 (22:10 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 23 Dec 2006 22:10:34 +0000 (22:10 +0000)
servers/slapd/overlays/accesslog.c

index 20d24a1a9eaa51113b370c56397511e88c2f3ab0..4dcdc10a97599453d988efcf2739d4250e4147eb 100644 (file)
@@ -1463,6 +1463,9 @@ accesslog_operational( Operation *op, SlapReply *rs )
        slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
        log_info *li = on->on_bi.bi_private;
 
+       if ( op->o_sync != SLAP_CONTROL_NONE )
+               return SLAP_CB_CONTINUE;
+
        if ( rs->sr_entry != NULL
                && dn_match( &op->o_bd->be_nsuffix[0], &rs->sr_entry->e_nname ) )
        {