-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login through RADIUS is not working due to invalid shell #13141
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,11 +159,11 @@ static void init_rnm(RADIUS_NSS_CONF_B * conf) { | |
rnm[0].gid = 999; | ||
rnm[0].groups = "docker"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The readonly user should be in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @qiluo-msft. User groups were defined based on existing RADIUS design document of SoNiC RADIUS_Design. I haven't introduced them as part of this pull request. Can you please confirm if we have to modify the same ? |
||
rnm[0].gecos = "remote_user"; | ||
rnm[0].shell = "/usr/bin/sonic-launch-shell"; | ||
rnm[0].shell = "/bin/bash"; | ||
rnm[RADIUS_MAX_MPL-1].gid = 1000; | ||
rnm[RADIUS_MAX_MPL-1].groups = "admin,sudo,docker"; | ||
rnm[RADIUS_MAX_MPL-1].gecos = "remote_user_su"; | ||
rnm[RADIUS_MAX_MPL-1].shell = "/usr/bin/sonic-launch-shell"; | ||
rnm[RADIUS_MAX_MPL-1].shell = "/bin/bash"; | ||
|
||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To reduce the attack surface, maybe change the default group given here.
MPL = 0 user does not require docker, but maybe it does require the redis group or adm group.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Yarden-Z . They were defined as per the existing RADIUS design document of SoNIC ( RADIUS_Design ). I haven't introduced them as part of this pull request. Can you please confirm if you have to change the same ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that these values were introduced in the HLD design.
But given this item - I think we can re-visit this.
From my perspective, a non-privileged user requires redis (potentially) and the default adm group.
If I understood your question