Hello I was wondering if there was a way to allow wildcards for logins. For example, *@company.com? Rather than adding thousands of users in the users file. This is only for a test environment. I have looked through the users file and older archives but not come accross a way to do this. Any help would be greatly appreciated. Thanks
On Wednesday 22 June 2005 14:06, Hassan Wahid wrote:
Hello
I was wondering if there was a way to allow wildcards for logins. For example, *@company.com? Rather than adding thousands of users in the users file. This is only for a test environment.
I have looked through the users file and older archives but not come accross a way to do this. Any help would be greatly appreciated.
Thanks
DEFAULT Realm == "company.com", Auth-Type := Accept It isn't explicitly defined in the docs, but a quick grep gives several examples that just need a little tweaking to come up with the above. Kevin Bonner
Hi Kevin Thanks for such a quick reply. I added the line you specified to my proxy.conf file and now when I run my radius server I get the following error: /usr/local/etc/raddb # radiusd -X & [1] 11158 /usr/local/etc/raddb # Starting - reading configuration files ... reread_config: reading radiusd.conf Config: including file: /usr/local/etc/raddb/proxy.conf /usr/local/etc/raddb/proxy.conf[264]: Line is not in 'attribute = value' format Errors reading radiusd.conf [1]+ Exit 1 radiusd -X /usr/local/etc/raddb # Any suggestions? Thanks Hassan
From: Kevin Bonner <keb@pa.net> Reply-To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: Wildcard Login Date: Wed, 22 Jun 2005 17:25:19 -0400
On Wednesday 22 June 2005 14:06, Hassan Wahid wrote:
Hello
I was wondering if there was a way to allow wildcards for logins. For example, *@company.com? Rather than adding thousands of users in the users file. This is only for a test environment.
I have looked through the users file and older archives but not come accross a way to do this. Any help would be greatly appreciated.
Thanks
DEFAULT Realm == "company.com", Auth-Type := Accept
It isn't explicitly defined in the docs, but a quick grep gives several examples that just need a little tweaking to come up with the above.
Kevin Bonner << attach4 >> - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Try adding it to your users file instead... -- Chris. ----- Original Message ----- From: "Hassan Wahid" <hassanwahid@hotmail.com> To: <freeradius-users@lists.freeradius.org> Sent: Thursday, June 23, 2005 4:11 PM Subject: Re: Wildcard Login
Hi Kevin
Thanks for such a quick reply. I added the line you specified to my proxy.conf file and now when I run my radius server I get the following error:
/usr/local/etc/raddb # radiusd -X & [1] 11158 /usr/local/etc/raddb # Starting - reading configuration files ... reread_config: reading radiusd.conf Config: including file: /usr/local/etc/raddb/proxy.conf /usr/local/etc/raddb/proxy.conf[264]: Line is not in 'attribute = value' format Errors reading radiusd.conf
[1]+ Exit 1 radiusd -X /usr/local/etc/raddb #
Any suggestions?
Thanks
Hassan
From: Kevin Bonner <keb@pa.net> Reply-To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: Wildcard Login Date: Wed, 22 Jun 2005 17:25:19 -0400
On Wednesday 22 June 2005 14:06, Hassan Wahid wrote:
Hello
I was wondering if there was a way to allow wildcards for logins. For example, *@company.com? Rather than adding thousands of users in the users file. This is only for a test environment.
I have looked through the users file and older archives but not come accross a way to do this. Any help would be greatly appreciated.
Thanks
DEFAULT Realm == "company.com", Auth-Type := Accept
It isn't explicitly defined in the docs, but a quick grep gives several examples that just need a little tweaking to come up with the above.
Kevin Bonner << attach4 >> - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
"Hassan Wahid" <hassanwahid@hotmail.com> wrote:
I was wondering if there was a way to allow wildcards for logins. For example, *@company.com? Rather than adding thousands of users in the users file. This is only for a test environment.
I have looked through the users file and older archives but not come accross a way to do this. Any help would be greatly appreciated.
Regular expressions DEFAULT User-Name =~ "@company\.com$", Auth-Type := Accept It won't work for EAP, or MS-CHAP, but it will work for PAP and CHAP. Alan DeKok.
participants (4)
-
Alan DeKok -
Chris Knipe -
Hassan Wahid -
Kevin Bonner