Page MenuHomePhorge

kolab freebusy doesn't understand network/subnet definition in trustednetworks
Closed, ResolvedPublic

Description

kolab-freebusy-1.1-2.16.el7.kolab_16.noarch
I'm trying to allow all IP's to access the freebusy service by modifying trustednetworks section in config.ini file:

[trustednetworks]
; allow = ::1,127.0.0.1,104.0.0.0.0/0,0/0
allow = ::1,127.0.0.1,0.0.0.0-255.255.255.255

The commented line doesn't work - meaning that freebusy is still asking me to authenticate. The only config that works is uncommented line.

Details

Ticket Type
Task

Event Timeline

The code that does not support these is:

$subnet = ip2long($subnet);
$mask = -1 << $bits;
$subnet &= $mask;  // just in case the supplied subnet wasn't correctly aligned
if (($ipbin & $mask) == $subnet) {
    return true;
}

in Utils::checkIpRange().