From: Howard Chu Date: Thu, 22 May 2003 09:22:41 +0000 (+0000) Subject: ITS#2529 null DN in log X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~80 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dc41a6b37e8e7252ad9483c120bb0a101ed04d0f;p=openldap ITS#2529 null DN in log --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 30fb2dc2f1..f924da1a8e 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -224,12 +224,13 @@ access_allowed( "access_allowed: backend default %s access %s to \"%s\"\n", access2str( access ), be->be_dfltaccess >= access ? "granted" : "denied", - op->o_dn.bv_val ); + op->o_dn.bv_val ? op->o_dn.bv_val : "(anonymous)" ); #else Debug( LDAP_DEBUG_ACL, "=> access_allowed: backend default %s access %s to \"%s\"\n", access2str( access ), - be->be_dfltaccess >= access ? "granted" : "denied", op->o_dn.bv_val ); + be->be_dfltaccess >= access ? "granted" : "denied", + op->o_dn.bv_val ? op->o_dn.bv_val : "(anonymous)" ); #endif ret = be->be_dfltaccess >= access; goto done;