mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
cleanup listener permissions
This commit is contained in:
parent
bf0373b486
commit
f43f7b1bfb
1 changed files with 6 additions and 2 deletions
|
|
@ -1082,7 +1082,10 @@ backend_check_restrictions(
|
|||
}
|
||||
|
||||
#ifdef SLAP_X_LISTENER_MOD
|
||||
if ( op->o_conn->c_listener && ! ( op->o_conn->c_listener->sl_perms & ( !BER_BVISEMPTY( &op->o_ndn ) ? S_IWUSR : S_IWOTH ) ) ) {
|
||||
if ( op->o_conn->c_listener &&
|
||||
! ( op->o_conn->c_listener->sl_perms & ( !BER_BVISEMPTY( &op->o_ndn )
|
||||
? (S_IWUSR|S_IWOTH) : S_IWOTH ) ) )
|
||||
{
|
||||
/* no "w" mode means readonly */
|
||||
rs->sr_text = "modifications not allowed on this listener";
|
||||
rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
|
||||
|
|
@ -1161,7 +1164,8 @@ backend_check_restrictions(
|
|||
if ( !starttls && !updateop ) {
|
||||
if ( op->o_conn->c_listener &&
|
||||
!( op->o_conn->c_listener->sl_perms &
|
||||
( !BER_BVISEMPTY( &op->o_dn ) ? S_IRUSR : S_IROTH )))
|
||||
( !BER_BVISEMPTY( &op->o_dn )
|
||||
? (S_IRUSR|S_IROTH) : S_IROTH )))
|
||||
{
|
||||
/* no "r" mode means no read */
|
||||
rs->sr_text = "read not allowed on this listener";
|
||||
|
|
|
|||
Loading…
Reference in a new issue