User_Role configuration in freeRadius Users file
Hi, I am using freeRadius for user authentication. I also want to assign roles (like type of user) for each user configured in /usr/local/etc/raddb/users file as like below. Then I will authorize the user in my radius client application based on radius returned role. dhandapani Cleartext-Password := "dhanda" Service-Type = Framed-User, Framed-Protocol = PPP, Reply-Message = "Hello Dhandapani", User-Role = Admin Is it possible. I have seen an attribute called 'Aruba-User-Role' but looks like vendor specific. Is there any way to configure the role? Or do I need to configure it somewhere else? Please suggest. Regards, Dhandapani -- View this message in context: http://www.nabble.com/User_Role-configuration-in-freeRadius-Users-file-tp242... Sent from the FreeRadius - User mailing list archive at Nabble.com.
I am using freeRadius for user authentication. I also want to assign roles (like type of user) for each user configured in /usr/local/etc/raddb/users file as like below. Then I will authorize the user in my radius client application based on radius returned role.
dhandapani Cleartext-Password := "dhanda" Service-Type = Framed-User, Framed-Protocol = PPP, Reply-Message = "Hello Dhandapani", User-Role = Admin
Is it possible. I have seen an attribute called 'Aruba-User-Role' but looks like vendor specific. Is there any way to configure the role?
Does your client know what to do with that attribute? There is no point configuring it in freeradius if your client can't use it. Ivan Kalik Kalik Informatika ISP
Yes Ivan. I am sure that I will utilize the server configuration in client application. I am able to read the response and parse the attributes from client. For example, I am able to read the value of the attribute 'Reply-Message' using its name or the code 18. Same way I want to read the userType and authorize the features of my client. Please advise. Thanks in advance. Regards, Dhandapani Ivan Kalik wrote:
I am using freeRadius for user authentication. I also want to assign roles (like type of user) for each user configured in /usr/local/etc/raddb/users file as like below. Then I will authorize the user in my radius client application based on radius returned role.
dhandapani Cleartext-Password := "dhanda" Service-Type = Framed-User, Framed-Protocol = PPP, Reply-Message = "Hello Dhandapani", User-Role = Admin
Is it possible. I have seen an attribute called 'Aruba-User-Role' but looks like vendor specific. Is there any way to configure the role?
Does your client know what to do with that attribute? There is no point configuring it in freeradius if your client can't use it.
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- View this message in context: http://www.nabble.com/User_Role-configuration-in-freeRadius-Users-file-tp242... Sent from the FreeRadius - User mailing list archive at Nabble.com.
OK then. Your users file example looks fine. All you have to do is define this custom attribute in raddb/dictionary. Ivan Kalik Kalik Informatika ISP
Yes Ivan. I am sure that I will utilize the server configuration in client application.
I am able to read the response and parse the attributes from client. For example, I am able to read the value of the attribute 'Reply-Message' using its name or the code 18. Same way I want to read the userType and authorize the features of my client. Please advise.
Thanks in advance.
Regards, Dhandapani
Ivan Kalik wrote:
I am using freeRadius for user authentication. I also want to assign roles (like type of user) for each user configured in /usr/local/etc/raddb/users file as like below. Then I will authorize the user in my radius client application based on radius returned role.
dhandapani Cleartext-Password := "dhanda" Service-Type = Framed-User, Framed-Protocol = PPP, Reply-Message = "Hello Dhandapani", User-Role = Admin
Is it possible. I have seen an attribute called 'Aruba-User-Role' but looks like vendor specific. Is there any way to configure the role?
Does your client know what to do with that attribute? There is no point configuring it in freeradius if your client can't use it.
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- View this message in context: http://www.nabble.com/User_Role-configuration-in-freeRadius-Users-file-tp242... Sent from the FreeRadius - User mailing list archive at Nabble.com.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Thanks Ivan. I hope it is /usr/local/share/freeradius/dictionary included in raddb/dictionary. I added an entry like this & restarted server: ATTRIBUTE User-Role 208 string But with JRadius client, I am getting 'Invalid RADIUS Authenticator' after this new attribute. I am calling the server using the below code. I tried using PAPAuthenticator also but same error. RadiusPacket reply = radiusClient.authenticate(request, new MSCHAPv2Authenticator(), 0); Can you help me why I am getting this error? Regards, Dhandapani Ivan Kalik wrote:
OK then. Your users file example looks fine. All you have to do is define this custom attribute in raddb/dictionary.
Ivan Kalik Kalik Informatika ISP
Yes Ivan. I am sure that I will utilize the server configuration in client application.
I am able to read the response and parse the attributes from client. For example, I am able to read the value of the attribute 'Reply-Message' using its name or the code 18. Same way I want to read the userType and authorize the features of my client. Please advise.
Thanks in advance.
Regards, Dhandapani
Ivan Kalik wrote:
I am using freeRadius for user authentication. I also want to assign roles (like type of user) for each user configured in /usr/local/etc/raddb/users file as like below. Then I will authorize the user in my radius client application based on radius returned role.
dhandapani Cleartext-Password := "dhanda" Service-Type = Framed-User, Framed-Protocol = PPP, Reply-Message = "Hello Dhandapani", User-Role = Admin
Is it possible. I have seen an attribute called 'Aruba-User-Role' but looks like vendor specific. Is there any way to configure the role?
Does your client know what to do with that attribute? There is no point configuring it in freeradius if your client can't use it.
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- View this message in context: http://www.nabble.com/User_Role-configuration-in-freeRadius-Users-file-tp242... Sent from the FreeRadius - User mailing list archive at Nabble.com.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- View this message in context: http://www.nabble.com/User_Role-configuration-in-freeRadius-Users-file-tp242... Sent from the FreeRadius - User mailing list archive at Nabble.com.
I hope it is /usr/local/share/freeradius/dictionary included in raddb/dictionary.
No, it *is* raddb/dictionary.
I added an entry like this & restarted server: ATTRIBUTE User-Role 208 string
Attribute needs to have number above 3000.
But with JRadius client, I am getting 'Invalid RADIUS Authenticator' after this new attribute. I am calling the server using the below code. I tried using PAPAuthenticator also but same error. RadiusPacket reply = radiusClient.authenticate(request, new MSCHAPv2Authenticator(), 0);
You have to configure an attribute with the same number in client dictionary. Ivan Kalik Kalik Informatika ISP
Thanks Ivan. Sorry it was late response. I was out for sometime. Just want to make sure that the comments in raddb/dictionary says 'If you want to add entries to the dictionary file, which are NOT going to be placed in a RADIUS packet, add them here'. So am I right adding it here? Anyway I tried adding the new attribute in raddb/dictionary. There is no error in client now but the client is not receiving/parsing the new attribute and value. Sorry, how do I add custom attribute in client directory. I could not find any provision to add custom attributes in jradius client side. Please help me. Also, I could see there are some vendor specific dictionary files like dictionary.juniper. I have defined my own called 'dictionary.test with this custom attribute and included the dictionary in /usr/local/share/freeradius/dictionary but results in same exception. Please advise. Thanks in advance. Regards, Dhandapani Ivan Kalik wrote:
I hope it is /usr/local/share/freeradius/dictionary included in raddb/dictionary.
No, it *is* raddb/dictionary.
I added an entry like this & restarted server: ATTRIBUTE User-Role 208 string
Attribute needs to have number above 3000.
But with JRadius client, I am getting 'Invalid RADIUS Authenticator' after this new attribute. I am calling the server using the below code. I tried using PAPAuthenticator also but same error. RadiusPacket reply = radiusClient.authenticate(request, new MSCHAPv2Authenticator(), 0);
You have to configure an attribute with the same number in client dictionary.
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- View this message in context: http://www.nabble.com/User_Role-configuration-in-freeRadius-Users-file-tp242... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Just want to make sure that the comments in raddb/dictionary says 'If you want to add entries to the dictionary file, which are NOT going to be placed in a RADIUS packet, add them here'. So am I right adding it here? Anyway I tried adding the new attribute in raddb/dictionary. There is no error in client now but the client is not receiving/parsing the new attribute and value. Sorry, how do I add custom attribute in client directory. I could not find any provision to add custom attributes in jradius client side. Please help me.
No, $INCLUDE your vendor dictionary (read comments above that). But if you don'y know how to add custom attributes on JRadius side - there is no point to this exercise. Ivan Kalik Kalik Informatika ISP
participants (2)
-
Ivan Kalik -
kpani