2012-09-06 - Re: [GRASE-Hotspot] replicate database

Header Data

From: Tim White <ti***8@gmail.com>
Message Hash: 380cbb4f3acd68b8b2433eeab4bb6353912c8ddd337d7a8c8f2a1daa543b7c63
Message ID: <50491566.7000605@gmail.com>
Reply To: <34487A6DF906D542B7EB9816D6F880FD1387E480@SERVERMAIL.Monterosaspa.local>
UTC Datetime: 2012-09-06 14:28:06 UTC
Raw Date: Fri, 07 Sep 2012 07:28:06 +1000

Raw message

On 05/09/12 19:42, Tommaso Prinetti wrote:
>
> My question is: how can I replicate the database? For now, each system is independent and I have to manually create the accounts on each hotspot. Is it possible to set a cron job that replicates the account database from one hotspot to the other?
You don't really want to replicate a database, due to the fact that 
there is a lot in there that decides if the user is allowed access or 
not. (i.e. usage logs). What you'll want to do, is pick on database as 
the "master", then change the other hotspot to run off that database. 
Currently it's not as easy as it should be, you'll need to edit files in 
/etc/grase/ and there is also one in /etc/freeradius that has database 
settings.

In the future I'll be making it possible to have master and slave nodes.

Tim




Thread