Skip to content

Fixes #23#34

Open
jguy1987 wants to merge 6 commits intorobgolding:masterfrom
jguy1987:win-fix
Open

Fixes #23#34
jguy1987 wants to merge 6 commits intorobgolding:masterfrom
jguy1987:win-fix

Conversation

@jguy1987
Copy link

@jguy1987 jguy1987 commented Oct 4, 2024

Placed a try/except block in the _perform_radius_auth function that caught an invalid start byte from Windows Systems. This fixed #23

* django-radius will now accept a role=su-staff Class 25 attribute from the RADIUS server to set both is_superuser and is_staff to True for the user in one step.
* Placed a try/except block in the _perform_radius_auth function that caught an invalid start byte from Windows Systems.
* This allows you to implicitly set django to be in charge of group assignments, while still keeping remote_roles setting that will still bring over the is_staff and is_superuser flags from RADIUS.
@jguy1987
Copy link
Author

jguy1987 commented Oct 4, 2024

Note: This seems to be a duplicate of #26. I didn't notice this PR would fix the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authenticate with Window NPS Radius Server Failed

1 participant