Hi, I am getting familiar with FreeRadius since it is being proposed in the designs as our Authentication/Authorization server. I have successfully installed and started the server and I have done some calls using the radtest client script. I am currently only using the users file to create new users since my goal at this time is validating concepts.... I am currently trying to assign a Role to one of my users and get that value returned to the client. I am still using the radtest client. The only information I found related to configuring roles indicated that I had to enter a new attribute in the dictionary file, add the attribute in the users file with the value I needed and add the dictionary file as a parameter to the radtest (-d directory) to be able to see the attribute in the returned message... Well this is not working as described... Any idea or reference document I can use to have this configured? Thanks for your help! Maria
On Mon, Jun 28, 2010 at 05:08:54PM -0400, Maria Sanchez wrote:
The only information I found related to configuring roles indicated that I had to enter a new attribute in the dictionary file, add the attribute in the users file with the value I needed and add the dictionary file as a parameter to the radtest (-d directory) to be able to see the attribute in the returned message... Well this is not working as described...
For starters, avoid custom attributes and dictionaries, and just try a standard attribute first. Pick an attribute with a string value from the basic specification (RFC2865), assign a value to it, and check for it in the reply. -- 2. That which causes joy or happiness.
Am 28.06.2010 23:08, schrieb Maria Sanchez:
Any idea or reference document I can use to have this configured? Hi,
in general: There are only 256 possible attribute types because of the type field in the attribute format. IANA manages those types. According to http://www.iana.org/assignments/radius-types/ you can use the types 192-240 as you like. Freeradius specific: Freeradius uses an integer for the attribute type. If you choose a number above 255 (<-- not verified) freeradius will NOT send the attribute to the client because it doesn't fit the format. But you can use it internally. See Auth-Type in "dictionary.freeradius.internal" for example. If you want your custom AVP sent to the client, use a number from the private range (this definitely works). Regards, Martin
Maria Sanchez wrote:
I am getting familiar with FreeRadius since it is being proposed in the designs as our Authentication/Authorization server. I have successfully installed and started the server and I have done some calls using the radtest client script. I am currently only using the users file to create new users since my goal at this time is validating concepts…. I am currently trying to assign a Role to one of my users and get that value returned to the client. I am still using the radtest client.
What do you mean by "role" ? Is this role for use by a real client, i.e. *not* radclient? If so, see the client documentation for what attribute to send.
The only information I found related to configuring roles indicated that I had to enter a new attribute in the dictionary file, add the attribute in the users file with the value I needed and add the dictionary file as a parameter to the radtest (-d directory) to be able to see the attribute in the returned message… Well this is not working as described… Any idea or reference document I can use to have this configured?
The dictionary file has a "man" page. The comments at the top of the dictionary file describe the format, too. In general, you need to edit the dictionaries *only* if you're writing your own RADIUS client (i.e. NAS). Otherwise, don't touch them. Alan DeKok.
-----Original Message----- From: freeradius-users-bounces+maria.sanchez=hughes.com@lists.freeradius.org [mailto:freeradius-users-bounces+maria.sanchez=hughes.com@lists.freeradius.org] On Behalf Of Alan DeKok Sent: Tuesday, June 29, 2010 2:09 AM To: FreeRadius users mailing list Subject: Re: Newbee question Maria Sanchez wrote:
I am getting familiar with FreeRadius since it is being proposed in the designs as our Authentication/Authorization server. I have successfully installed and started the server and I have done some calls using the radtest client script. I am currently only using the users file to create new users since my goal at this time is validating concepts…. I am currently trying to assign a Role to one of my users and get that value returned to the client. I am still using the radtest client.
What do you mean by "role" ? For example an "Admin" role that indicates to an application what are the actions the user can perform. Is this role for use by a real client, i.e. *not* radclient? Yes. I have an application that authenticates the user with Radius and then gets the set of roles assigned to this user. With the set of roles the application knows what the user can or cannot do. If so, see the client documentation for what attribute to send.
The only information I found related to configuring roles indicated that I had to enter a new attribute in the dictionary file, add the attribute in the users file with the value I needed and add the dictionary file as a parameter to the radtest (-d directory) to be able to see the attribute in the returned message… Well this is not working as described… Any idea or reference document I can use to have this configured?
The dictionary file has a "man" page. The comments at the top of the dictionary file describe the format, too. In general, you need to edit the dictionaries *only* if you're writing your own RADIUS client (i.e. NAS). Otherwise, don't touch them. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Maria Sanchez wrote:
For example an "Admin" role that indicates to an application what are the actions the user can perform.
OK.
Is this role for use by a real client, i.e. *not* radclient? Yes. I have an application that authenticates the user with Radius and then gets the set of roles assigned to this user. With the set of roles the application knows what the user can or cannot do.
If you're writing your own client, just return the name of the role in the Filter-Id attribute. Alan DeKok.
participants (4)
-
Alan DeKok -
Josip Rodin -
Maria Sanchez -
Martin Merkel