]> git.sur5r.net Git - openldap/commitdiff
Tweak prev commit:
authorHoward Chu <hyc@openldap.org>
Thu, 2 Nov 2006 19:26:04 +0000 (19:26 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 2 Nov 2006 19:26:04 +0000 (19:26 +0000)
Preserve delete/replace indication from original request

servers/slapd/overlays/accesslog.c

index a98d11bf6d7c12dcbd620cdb886505ec3a310d48..b57c197cf7e26cd2b0f70a4dc774744078f761ea 100644 (file)
@@ -1081,7 +1081,10 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
                                ptr = lutil_strcopy( vals[i].bv_val,
                                        m->sml_desc->ad_cname.bv_val );
                                *ptr++ = ':';
-                               *ptr++ = '-';
+                               if ( m->sml_op == LDAP_MOD_DELETE )
+                                       *ptr++ = '-';
+                               else
+                                       *ptr++ = '=';
                                *ptr = '\0';
                                i++;
                        }