Re: MAC authorisation (but not authentication) via LDAP

This is a discussion on Re: MAC authorisation (but not authentication) via LDAP within the FreeRADIUS Users forums, part of the Networking and Network Related category; Markus Krause wrote: > don't no if it is a good solution, but i just do this by setting ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2007
Phil Mayers
 
Posts: n/a
Default Re: MAC authorisation (but not authentication) via LDAP

Markus Krause wrote:

> don't no if it is a good solution, but i just do this by setting the
> following in radiusd.conf:
>
> authenticate {
> ...
> Auth-Type LdapMAC {
> ok
> }
> ...
> }
>
> the Auth-Type is set in users file depending on huntgroups:
>
> DEFAULT Huntgroup-Name == switch, Autz-Type := LdapMAC, Auth-Type := LdapMAC
>
> i assume there are better/smarter sollutions as one can read "don't
> set Auth-Type" on many places but it works here ;-)


Sorry, but it's an awful suggestion. Don't do it, and certainly don't
recommend others do it. There's no need to go setting Auth-Type to
random values.

The correct way to do this is to reject unknown, not blindly accept known.

Example - you could modify the ldap group membership query to find
groups based on both the username and callingstationid:

groupmembership_filter = "(|
(&(objectClass=GroupOfMacaddrs)(member=%{Calling-Station-Id}))
(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))
)"

Then in "ldap":

dn: cn=GoodMacs,dc=example,dc=com
objectClass: top
objectClass: GroupOfMacadds
member: 00:11:22:33:44:55
member: 66:77:88:99:aa:bb

Then in the "users" file:

DEFAULT Ldap-Group == "GoodMacs"
Fall-Through = No

DEFAULT Auth-Type := Reject
Reply-Message = "your mac is unknown"

There are lots of variations of this scheme.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply


Thread Tools
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

vB 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:47 AM.


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