Replies: 2 comments 6 replies
-
Groups are administered in the django admin section of the web UI: from the 'admin' menu at top right, select 'Admin' |
Beta Was this translation helpful? Give feedback.
6 replies
-
Glad I wasn't the only one struggling with this ;) I feel slightly less stupid now. Also, beware, anything you configure regarding groups and users is case sensitive for some reason. So make sure you configure your groups an/or users and Netbox with the exact strings as they come from your IDP else it doesn't work either. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to set up an oauth2 proxy in front of Netbox (to authenticate against a local Keycloak instance). I have the following configuration in the
/etc/netbox/config/extra.py
:Authentication works just fine; I can enter my credentials and Netbox shows my email address in the account menu.
Requests have an
X-Forwarded-Groups
header that looks like:I have verified that these headers are present in requests to Netbox.
I've tried setting
REMOTE_AUTH_GROUP_HEADER
andREMOTE_AUTH_GROUP_SEPARATOR
appropriately, but viewing the account profile (https://netbox.../user/profile/
) always shows "Groups: None", and I'm not able to get superuser privileges.Is there something obvious missing from my configuration?
With debug logging enabled, I see the following trace for
netbox.authentication.RemoteUserBackend
when logging in as useralice@example.com
who is a member of thenetbox-admin
group:It looks like the problem is that the
netbox-admin
group has to exist in netbox before this will work. How are netbox groups supposed to be created? I haven't found any documentation on that topic, and I don't see anything in the UI either. Runningpsql
andinsert into auth_group (name) values ('netbox-admin');
seems to get things working, but I'm hoping there's a better way.Beta Was this translation helpful? Give feedback.
All reactions