Skip to content
Snippets Groups Projects
Commit 54231dd1 authored by Howard Chu's avatar Howard Chu
Browse files

Only log realdn if it's non-empty

parent f4a188bf
Branches
Tags
No related merge requests found
......@@ -128,9 +128,9 @@ static int auditlog_response(Operation *op, SlapReply *rs) {
fprintf(f, "# %s %ld %s%s%s\n",
what, stamp, suffix, who ? " " : "", who ? who->bv_val : "");
if ( !who || !dn_match( who, &op->o_conn->c_dn ))
fprintf(f, "# realdn: %s\n", op->o_conn->c_dn.bv_val ? op->o_conn->c_dn.bv_val :
"<empty>" );
if ( !BER_BVISEMPTY( &op->o_conn->c_dn ) &&
(!who || !dn_match( who, &op->o_conn->c_dn )))
fprintf(f, "# realdn: %s\n", op->o_conn->c_dn.bv_val );
fprintf(f, "dn: %s\nchangetype: %s\n",
op->o_req_dn.bv_val, what);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment