Fetching users from external source

Michael Schwartzkopff ms at sys4.de
Mon May 11 17:01:17 CEST 2015


Am Montag, 11. Mai 2015, 16:55:47 schrieb mlstfr at ntcomputer.de:
> Hello freeradius users,
> 
> I am using freeradius2 on OpenWRT (having very little resources to
> operate), which is working fine. Now I'm trying to load users (usernames
> + passwords) from an external source for authentication in a guest
> network - the external source is another server which will be running a
> web interface and database to configure guest accounts. My approach
> would be to use wget/curl for fetching the users from the server
> (wrapped in a script), which allows the server to format the user list
> in a way freeradius understands it.
> 
> How can I configure freeradius to execute the script on startup and use
> its stdout to later authenticate users against it? Of course, if there
> is another (better) approach on how to fetch the users, I would be happy
> to hear about it :)
> 
> Also, guest accounts will be modified while freeradius is running. I
> need a way to inform freeradius (using SIGHUP?) to reload the user list
> from the server. Do you have a recommendation on how to achieve this in
> real-time?
> 
> Thank you for your help!

Why don't you just use the database connection. FR is able to talk to 
databases. see man rlm_sql.

Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20150511/492fcd5b/attachment.sig>


More information about the Freeradius-Users mailing list