-
Notifications
You must be signed in to change notification settings - Fork 56
Group role mapping #38
Comments
@reynico which version of package do you use? I have similar setup as you do, only difference is that in AUTH_LDAP_SENTRY_GROUP_ROLE_MAPPING I don't specify full path of group but only value of common name e.g.:
|
@anitabee hi! I'm using the latest one as you do. I'll try with the master branch |
I am also trying to get it two work, but for some reason the user that is added to the admin group does not have the admin permissions. I already tried to delete the user multiple times but it does not work. |
@ntimo you mean user that is in LDAP admin group does not get authenticated as admin in Sentry? If you go to |
@anitabee I am actually building the plugin my self using GitLab CI from the latest master version from GitHub. When I go the And when I go to This is my sentry config:
|
I see, one thing I noticed though, when searching for groups you use
But you set |
@anitabee When I set |
Sounds like import error? |
I indeed used the wrong import. Now Sentry starts properly. But this still does not fix the issue that the user is still just a Member of the org and not the Admin of the Org. |
Huh I'm out of ideas :(, but I would validate that group queries are proper towards LDAP. Did you tried to run Sentry in debug mode? If so what are results from group query towards LDAP? For me I get something like this (when user first time logins):
Not sure if it helps you, but I can share development setup that works for me.
Conf for package:
requirements.txt
|
Is it possible that Starting from the source code, the attribute
But this attribute can only be used when
If I have the feeling to use
At least the following group mapping should then be possible?
|
Did anyone get this working? I have role mapped but every user that login for first time the default "member" role is assinged to him. So role mapping dont work for me :( |
This is how I successfully make it work on my side. I might have some extra stuff not really needed but at least I got able to have my permission from LDAP. This is use with getsentry helm chart and it is working with LDAP on FreeIPA. Make sure to set up these variable in your dockerfile:
|
Hi!
I have two groups:
Where each group have members which are
memberof
each group.My current ldap configuration is as follows
User login works perfect, but always as "Member". Is there any way to approach a user management by its group? Not really sure if I'm using
correctly.
The text was updated successfully, but these errors were encountered: