Bluehost.com Web Hosting $6.95

Re: restrict login based on nas

This is a discussion on Re: restrict login based on nas within the FreeRADIUS Users forums, part of the Networking and Network Related category; Marcin Jessa wrote: >Hi. > >This can be done with hungroups or realms. >I use RouterOS as ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-17-2005
Greg Swift
 
Posts: n/a
Default Re: restrict login based on nas

Marcin Jessa wrote:

>Hi.
>
>This can be done with hungroups or realms.
>I use RouterOS as my NAS which has a Mikrotik-Realm Attribute.
>If user's Mikrotik-Realm stored in radcheck differs from the one configured on the NAS, the user gets rejected.
>This way each user can have separate realm value stored in SQL matching the realm of the NAS.
>
>

So.. how would that work in a situation as follows:

Realms:
Local = myisp
Roaming = globalisp
Usergroups:
Default = dynamic
Roaming = roaming

Now these are the rules .. in simple if statements

if (realm == myisp)
{
if (usergroup == dynamic)
{
auth-type = accept;
} else if (usergroup == roaming)
{
auth-type = reject;
}
} else if (realm == globalisp)
{
if (usergroup == dynamic || usergroup == roaming)
{
auth-type = accept;
}
}

So how then do I specify that which NAS is in which realm?

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0