[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Freeradiusd 3 and Realm help
From:       Alan DeKok <aland () deployingradius ! com>
Date:       2022-09-30 13:14:32
Message-ID: F84260EF-BBAD-4FA0-B8D5-91BC879DCA2C () deployingradius ! com
[Download RAW message or body]

On Sep 30, 2022, at 5:04 AM, Olivier CALVANO <o.calvano@gmail.com> wrote:
> but now i want same with all username and without check password
> 
> sample:
> *@my.realm Cleartext-Password := "*"
> Tunnel-Type:1 = L2TP,
> Tunnel-Medium-Type:1 = IPv4,

  Why use the "files" module?  It isn't designed to do what you want.

  The documentation on the files module is very clear on how it works.  It doesn't do \
what you want, so you can't do it there.

> I don't know how to do this, does anyone have a tip?

$ man unlang


	if (User-Name =~ /@my.realm$/) {
		update reply {
			Tunnel-Type;1 = L2TP
			Tunnel-Medium-Type:1 = IPv4
			...	
		}
	}

  That will work.

  Alan DeKok.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic