# daloRADIUS new feature: locations — Liran Tal

The new locations feature in daloRADIUS allows you to configure multiple databases for your radius server.

Canonical: https://lirantal.com/blog/2008-10-23

I’ve been pushing in something new… it’s called Locations support.
The problem which adding Locations support targeted to solve is the issue which you may have several databases for your `freeradius` server (for example you’re hosting services for someone else or you would like to have multiple instances of a radius database for different hotspot locations) and you don’t want to install daloRADIUS platform (the web files) for each database (this is because the database information is statically configured one-time in a configuration file).

Hence, Locations are simply several configuration options for the available mysql databases on top of the must have default one.
To remind you, to configure your database connections for a mysql database where you radius server is stored you are setting the following options in library/daloradius.conf:

```
$configValues['CONFIG_DB_ENGINE'] = ‘mysql’;
$configValues['CONFIG_DB_HOST'] = ’127.0.0.1′;
$configValues['CONFIG_DB_USER'] = ‘root’;
$configValues['CONFIG_DB_PASS'] = ”;
$configValues['CONFIG_DB_NAME'] = ‘radius’;
```

The configuration directives that are now available to configure more locations than the default (the default location is always available) are declared as:

```
$configValues['CONFIG_LOCATIONS'] = array(
    “Location Example 1″ => array(
    “Engine” => “mysql”,
    “Username” => “root”,
    “Password” => “”,
    “Database” => “radius”,
    “Hostname” => “127.0.0.1″
),

“Location Example 2″ => array(
    “Engine” => “mysql”,
    “Username” => “db_usertest”,
    “Password” => “db_passtest”,
    “Database” => “test_db1″,
    “Hostname” => “localhost”
    )
    );
```

You of course don’t need to know the syntax for it as it is provided by default in the `daloradius.conf.php` file. All that there is to it is simply to copy those “Location Example N” stanza and change the settings. As you probably have guessed, the format is variable in the left and the value in the right, so you just need to adjust the right text inside the double quotes to fit your setup.

![](https://web.archive.org/web/20140703093018im_/http://www.daloradius.com/images/screenshots/new_feature-locations.jpg)

## More writing

[All writing →](/blog)

*   Sep 5, 2026

    ### [Self-Hosting Hermes Agent with Matrix E2EE on Proxmox](/blog/self-host-hermes-agent-matrix-e2ee-proxmox)

*   Aug 2, 2026

    ### [The Practical Second Brain: Building an LLM-Operated Markdown Knowledge Graph](/blog/practical-second-brain-llm-markdown-knowledge-graph)

*   Aug 1, 2026

    ### [Building a Second Brain with LLMs and AI Agents](/blog/building-second-brain-llms-ai-agents)


* * *

Liran Tal is the author of the book [Node.js Secure Coding: Defending Against Command Injection Vulnerabilities](https://www.nodejs-security.com/)

[Start Building Secure Node.js Applications ↗](https://www.nodejs-security.com/)

 [![](/_astro/nodejs-secure-coding-book-3d-style.DiTWpzFs_Z3c7s1.png)](https://www.nodejs-security.com/)
