Dynamic realm+home_server_pool from LDAP/SQL
Hi, I'm looking through the code and documentation of freeradius now to see if it is possible to use freeradius with a backend database for realms. For clients this can be fixed with dynamic clients and overwriting attributes.. but for realms this does not seem possible. Did I miss something? I'm looking to implement this if it's not there, in what way can I do this where my patches would be accepted (assuming clean code obviously)? Regards, Wilco Baan Hofman
I'm looking through the code and documentation of freeradius now to see if it is possible to use freeradius with a backend database for realms.
Not to define new realms no.
For clients this can be fixed with dynamic clients and overwriting attributes.. but for realms this does not seem possible. Did I miss something?
It's not possible. IIRC there was talk of possible sponsorship to add this functionality, but it's non trivial.
I'm looking to implement this if it's not there, in what way can I do this where my patches would be accepted (assuming clean code obviously)?
It's non trivial. I'll let Alan D comment as he was look at this recently. -Arran
Wilco Baan Hofman wrote:
I'm looking through the code and documentation of freeradius now to see if it is possible to use freeradius with a backend database for realms.
Realms, maybe. It's a lot more difficult with home servers.
For clients this can be fixed with dynamic clients and overwriting attributes.. but for realms this does not seem possible. Did I miss something?
No. If it worked, it would be documented.
I'm looking to implement this if it's not there, in what way can I do this where my patches would be accepted (assuming clean code obviously)?
Use github. Fork the code, and do it there. Any major changes like this MUST be done in the "master" branch. The v2.1.x branch is stable, and will have minimal changes. Alan DeKok.
On Fri, 2012-09-21 at 13:05 +0200, Alan DeKok wrote:
Wilco Baan Hofman wrote:
I'm looking through the code and documentation of freeradius now to see if it is possible to use freeradius with a backend database for realms.
I'm looking to implement this if it's not there, in what way can I do this where my patches would be accepted (assuming clean code obviously)?
Use github. Fork the code, and do it there.
Any major changes like this MUST be done in the "master" branch. The v2.1.x branch is stable, and will have minimal changes.
Okay, I understand this.. I was actually looking more for specifics on how you would want to have this implemented. Perhaps similarly to the dynamic clients using unlang? Or perhaps by configuring a configuration backend for realms or something.. There are several approaches to do this.. and I'm guessing you have some ideas about this :) Regards, Wilco Baan Hofman
Wilco Baan Hofman wrote:
Okay, I understand this.. I was actually looking more for specifics on how you would want to have this implemented. Perhaps similarly to the dynamic clients using unlang? Or perhaps by configuring a configuration backend for realms or something..
I would start off by moving the realm code to rlm_realm. There's really no reason it should be in the server core.
There are several approaches to do this.. and I'm guessing you have some ideas about this :)
Some. There are also many things I want to do, which I can't... because I'm not sure how. Adding dynamic home servers is one of them. They're pretty welded into the server core. Fixing that involves a lot of changes. Alan DeKok.
participants (3)
-
Alan DeKok -
Arran Cudbard-Bell -
Wilco Baan Hofman