How to check if a user exists in Radius Server and get attributes. #53
-
Hello, In my Spring Boot application, I'm using a radius authenticator. When I authenticate with the RadiusClient by sending the username and password, I map the users and their roles based on the attributes received. However, I have another service where I periodically sync users. Here, I only want to connect using the radius client and retrieve the attributes of a user by providing just the username, in order to update the user with this information. However, the RadiusClient has both authenticate and account calls. I use the "authenticate" call in the login part. In the part where I sync users, there is no password information, so I need to retrieve the user's information from a radius using only the username. How can I do this? This is my login mechanism
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If I understand correctly, you're looking for the RADIUS server to respond with the same type of response/attributes as the ACCESS ACCEPT with difference being that you do not have the user's password. This ability is a function of the RADIUS server (not the RADIUS client). |
Beta Was this translation helpful? Give feedback.
If I understand correctly, you're looking for the RADIUS server to respond with the same type of response/attributes as the ACCESS ACCEPT with difference being that you do not have the user's password. This ability is a function of the RADIUS server (not the RADIUS client).
I think you just need to configure your RADIUS server to send ACCESS ACCEPT for queries from your SpringBoot client. I.e. - if RADIUS server sees request from your SpringBoot client without password (or a shared secret in lieu of user's password), the server will send normal ACCESS ACCEPT response. Ideally, this would still require one or more other attributes in request (e.g. add an attribute in request with a shared …