]> git.sur5r.net Git - openldap/commitdiff
ITS#2529 null DN in log
authorHoward Chu <hyc@openldap.org>
Thu, 22 May 2003 09:22:41 +0000 (09:22 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 22 May 2003 09:22:41 +0000 (09:22 +0000)
servers/slapd/acl.c

index 30fb2dc2f16d744a083a6ade33b865ec733b0cef..f924da1a8e8bfd871fa7801604fc97960149db3c 100644 (file)
@@ -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;