(rlm_ippool does not create DB and IDX files) rlm_ippool can not open DB/IDX files

rogiermulder rogier at mulder.org
Wed Apr 18 06:47:47 CEST 2012


Thanks Alan!

Now it creates the files but only when I issue /sbin/radiusd as root, it can
create/access the idx and db files. When I start it issuing (as root)
/etc/init.d/radiusd start, it fail:

Wed Apr 18 06:41:59 2012 : Info: Loaded virtual server inner-tunnel
Wed Apr 18 06:41:59 2012 : Error: rlm_ippool: Failed to open file
//etc/raddb/db.mp.nl.sycada.com_pool: Permission denied
Wed Apr 18 06:41:59 2012 : Error: /etc/raddb/modules/ippool[90]:
Instantiation failed for module "mp.nl.sycada.com_pool"
Wed Apr 18 06:41:59 2012 : Error: /etc/raddb/sites-enabled/default[383]:
Failed to load module "mp.nl.sycada.com_pool".
Wed Apr 18 06:41:59 2012 : Error: /etc/raddb/sites-enabled/default[360]:
Errors parsing accounting section. 
Wed Apr 18 06:41:59 2012 : Error: Failed to load virtual server <default>

sites-available/default:

accounting {
mp.nl.sycada.com_pool
}
post-auth {
mp.nl.sycada.com_pool
}

modules/ippool:

ippool mp.nl.sycada.com_pool {
        range-start = 192.168.160.0
        range-stop = 192.168.191.254
        netmask = 255.255.0.0
        cache-size = 8160
        session-db = ${raddbdir}/db.mp.nl.sycada.com_pool
        ip-index = ${raddbdir}/idx.mp.nl.sycada.com_pool
        override = no
        maximum-timeout = 0
        key = "%{Calling-Station-ID}"
}

radiusd.conf :

user = radiusd
group = radius


ls -latr /etc/raddb:

-rw-------.   1 radiusd  radiusd    12288 Apr 18 06:27
idx.mp.nl.sycada.com_pool
-rw-------.   1 radiusd  radiusd  1032256 Apr 18 06:27
db.mp.nl.sycada.com_pool
drwxr-xr-x.   7 radiusd  radiusd     4096 Apr 18 06:45 .




--
View this message in context: http://freeradius.1045715.n5.nabble.com/rlm-ippool-does-not-create-DB-and-IDX-files-tp5647557p5648194.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.


More information about the Freeradius-Users mailing list