mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-26 16:52:55 -05:00
Only log realdn if it's non-empty
This commit is contained in:
parent
f4a188bf38
commit
54231dd13f
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue