mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
cleanup
This commit is contained in:
parent
854863f0b6
commit
6aca8c16c6
@ -144,14 +144,25 @@ slapacl( int argc, char **argv )
|
||||
break;
|
||||
}
|
||||
|
||||
(void)access_allowed_mask( &op, &e, desc, &val, access,
|
||||
rc = access_allowed_mask( &op, &e, desc, &val, access,
|
||||
NULL, &mask );
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
destroy:;
|
||||
|
Loading…
Reference in New Issue
Block a user