Re: adding realm to username without it
On Wed, 19 Mar 2003, Alain Cocconi wrote: Hi everybody, I'm currently checking if it is possible for me to switch fromicradius+my patches to freeradius. One of the features i need but not find in doc/mailing list is : I need to add a realm to all user without it. remote username sended will become ex: johndue -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- [EMAIL PROTECTED] attr_rewrite module. I've search a lot in archives and docs but not find answer for this. tia guys Alain Cocconi SATNET SARL BP 2694 NOUMEA CEDEX Nouvelle Caledonie Phone : +687 24 38 70 Fax : +687 27 12 50 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html -- Kostas Kalevras Network Operations Center [EMAIL PROTECTED] National Technical University of Athens, Greece Work Phone: +30 210 7721861 'Go back to the shadow' Gandalf - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: adding realm to username without it
check out attr_rewrite. attr_rewrite nodomain { attribute = Realm searchin = packet searchfor = NULL replacewith = mydomain.com ignore_case = yes new_attribute = no max_matches = 10 append = no } On Wed, 19 Mar 2003, Alain Cocconi wrote: Hi everybody, I'm currently checking if it is possible for me to switch fromicradius+my patches to freeradius. One of the features i need but not find in doc/mailing list is : I need to add a realm to all user without it. remote username sended will become ex: johndue -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- [EMAIL PROTECTED] I've search a lot in archives and docs but not find answer for this. tia guys Alain Cocconi SATNET SARL BP 2694 NOUMEA CEDEX Nouvelle Caledonie Phone : +687 24 38 70 Fax : +687 27 12 50 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: adding realm to username without it
Alain Cocconi [EMAIL PROTECTED] wrote: One of the features i need but not find in doc/mailing list is : I need to add a realm to all user without it. Why? Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: adding realm to username without it
On Wed, Mar 19, 2003 at 08:24:06AM -0500, Alan DeKok wrote: I need to add a realm to all user without it. Why? I have the same need here: I received calls access-requests and accounting requests without User-Name nor User-Pasword that I proxify to a 'home' server. I want to have a detail file matching something like: Realm-Date.log and the only way I found was to force the User-Name variable on the proxy just before sending requests to the Home with something like Calling-Station-Id@Realm. Or is there a way to have a different log file depending on parameters (like Realm, Called-Station-Id, etc.) on the same accounting server ? I explained the setup on a previous message on Mon, 17 Mar 2003 13:07:17 +0100 with subject Re: attr_rewrite conditional? (http://lists.cistron.nl/archives/freeradius-users/2003/03/frm00498.html). And I'm afraid that setup is unreliable about new freeradius versions... This is an example of why modifying the request before proxying may be helpfull (all that because today working platform we want to replace with freeradius runs with cisco and tacacs don't ask neither username nor password on cell phones and there is no way to ask all the clients to add a username on their phone configuration). - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: adding realm to username without it
Christophe Boyanique [EMAIL PROTECTED] wrote: I want to have a detail file matching something like: Realm-Date.log and the only way I found was to force the User-Name variable on the proxy just before sending requests to the Home with something like Calling-Station-Id@Realm. Or is there a way to have a different log file depending on parameters (like Realm, Called-Station-Id, etc.) on the same accounting server ? Yes. You can use any variable in the 'detailfile' directive: detailfile = %{Realm}-%Y%m%d-%{Called-Station-Id}.radlog Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html