- fprintf( stderr, "%s%s%s: %s\n",
- desc->ad_cname.bv_val,
- val.bv_val ? "=" : "",
- val.bv_val ? val.bv_val : "",
- accessmask2str( mask, accessmaskbuf ) );
+ if ( accessstr ) {
+ fprintf( stderr, "%s access to %s%s%s: %s\n",
+ accessstr,
+ desc->ad_cname.bv_val,
+ val.bv_val ? "=" : "",
+ val.bv_val ? val.bv_val : "",
+ rc ? "ALLOWED" : "DENIED" );
+
+ } else {
+ fprintf( stderr, "%s%s%s: %s\n",
+ desc->ad_cname.bv_val,
+ val.bv_val ? "=" : "",
+ val.bv_val ? val.bv_val : "",
+ accessmask2str( mask, accessmaskbuf ) );
+ }
+ rc = 0;