mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
cleanup
This commit is contained in:
parent
5d31a6247c
commit
4e75fa6345
1 changed files with 17 additions and 4 deletions
|
|
@ -278,18 +278,31 @@ aci_list_get_attr_rights(
|
||||||
ACL_INIT(mask);
|
ACL_INIT(mask);
|
||||||
for ( i = 1; acl_get_part( list, i + 1, ';', &bv ) >= 0; i += 2 ) {
|
for ( i = 1; acl_get_part( list, i + 1, ';', &bv ) >= 0; i += 2 ) {
|
||||||
if ( aci_list_has_attr( &bv, attr, val ) == 0 ) {
|
if ( aci_list_has_attr( &bv, attr, val ) == 0 ) {
|
||||||
Debug( LDAP_DEBUG_ACL, " <= aci_list_get_attr_rights test %s for %s -> failed\n", bv.bv_val, attr->bv_val, 0 );
|
Debug( LDAP_DEBUG_ACL,
|
||||||
|
" <= aci_list_get_attr_rights "
|
||||||
|
"test %s for %s -> failed\n",
|
||||||
|
bv.bv_val, attr->bv_val, 0 );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Debug( LDAP_DEBUG_ACL, " <= aci_list_get_attr_rights test %s for %s -> ok\n", bv.bv_val, attr->bv_val, 0 );
|
|
||||||
|
Debug( LDAP_DEBUG_ACL,
|
||||||
|
" <= aci_list_get_attr_rights "
|
||||||
|
"test %s for %s -> ok\n",
|
||||||
|
bv.bv_val, attr->bv_val, 0 );
|
||||||
|
|
||||||
if ( acl_get_part( list, i, ';', &bv ) < 0 ) {
|
if ( acl_get_part( list, i, ';', &bv ) < 0 ) {
|
||||||
Debug( LDAP_DEBUG_ACL, " <= aci_list_get_attr_rights test no rightsk\n", 0, 0, 0 );
|
Debug( LDAP_DEBUG_ACL,
|
||||||
|
" <= aci_list_get_attr_rights "
|
||||||
|
"test no rights\n",
|
||||||
|
0, 0, 0 );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
mask |= aci_list_map_rights( &bv );
|
mask |= aci_list_map_rights( &bv );
|
||||||
Debug( LDAP_DEBUG_ACL, " <= aci_list_get_attr_rights rights %s to mask 0x%x\n", bv.bv_val, mask, 0 );
|
Debug( LDAP_DEBUG_ACL,
|
||||||
|
" <= aci_list_get_attr_rights "
|
||||||
|
"rights %s to mask 0x%x\n",
|
||||||
|
bv.bv_val, mask, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
return mask;
|
return mask;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue