Hi guys, I'm using freeradius to authenticate users against PPP (Poptop and PPPOE). After connection, i start a few processes from /etc/ppp/ppp.linkup and need to set some user dependent variable. I would like to get those informations from the same database as for auth. Here is my question: Is it possible to set environnement variables during authentication process? Wth this, I will use them to launch my processes. (my other solution is to setup a secured connection to the sql database, but I would like to use freeradius if possible). Thanks for the help cheers Alex
Hi, I am not sure but I have seen solutions using radattr.so module with PPP and then you can access the attributes ( which would be sent by freeradius ) from /var/run/radattr.$interface ;) Maybe you would need to add your attributes to the dictionary file ( both server and client ). Regards, Edvin -----Original Message----- From: freeradius-users-bounces+edvin.seferovic=kolp.at@lists.freeradius.org [mailto:freeradius-users-bounces+edvin.seferovic=kolp.at@lists.freeradius.or g] On Behalf Of Alexandre DELAY Sent: Samstag, 25. März 2006 19:00 To: freeradius-users@lists.freeradius.org Subject: Set environnement variable Hi guys, I'm using freeradius to authenticate users against PPP (Poptop and PPPOE). After connection, i start a few processes from /etc/ppp/ppp.linkup and need to set some user dependent variable. I would like to get those informations from the same database as for auth. Here is my question: Is it possible to set environnement variables during authentication process? Wth this, I will use them to launch my processes. (my other solution is to setup a secured connection to the sql database, but I would like to use freeradius if possible). Thanks for the help cheers Alex - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
I am not sure but I have seen solutions using radattr.so module with PPP and then you can access the attributes ( which would be sent by freeradius ) from /var/run/radattr.$interface ;)
Thanks for the answer. I forgot to say that I'm using a BSD and not a Linux. radattr only exists under Linux. Thanks to your answer, I found that ppp has an interresting functionnality: ___________________________ ppp(8) ... ppp uses the following attributes from the RADIUS reply: ... RAD_FILTER_ID If this attribute is supplied, ppp will attempt to use it as an additional label to load from the ppp.linkup and ppp.linkdown files. The load will be attempted before (and in addition to) the normal label search. If the label doesn't exist, no action is taken and ppp proceeds to the normal load using the current label. ... ___________________________ The thing is that this attribute (and others in this man page) is not present in any radius dictionnary. Thus Freeradius doesn't want to process it: __log___ Sun Mar 26 11:20:06 2006 : Error: rlm_sql: unknown attribute RAD_FILTER_ID Sun Mar 26 11:20:06 2006 : Error: rlm_sql (sql): Error getting data from database _______ What am I supposed to do? I'm not going to change dictionary entries!?? Should I? If so, I'm not sure to know the structure of dictionaries. Is there any doc about that? Cheers Alex
participants (2)
-
Alexandre DELAY -
Seferovic Edvin