Skip to content
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

room/space membership by LDAP groups? #166

Open
d-sko opened this issue Jul 14, 2022 · 1 comment
Open

room/space membership by LDAP groups? #166

d-sko opened this issue Jul 14, 2022 · 1 comment

Comments

@d-sko
Copy link

d-sko commented Jul 14, 2022

Is your feature request related to a problem? Please describe.
I'm not sure if this is possible for an auth provider, but it would be very useful to add and remove users to/from rooms and spaces based on their LDAP groups.
This way it would be possible to create spaces and rooms for every department or team and they would be automatically assigned by the group membership of the user. And if the user switches to an other department/team, he would be removed from the old rooms and added to the new ones without any administrative tasks on the synapse end of things.

Describe the solution you'd like
a configurable list of mappings based on the CN of the group and the room name or ID, something like this (with one or more rooms per group):

modules:
 - module: "ldap_auth_provider.LdapAuthProviderModule"
   config:
     enabled: true
     [...]
     room_mapping:
       - cn: "CN=some,CN=group,DC=example,DC=com"
         rooms: "room 1"
       - cn: "CN=some,CN=other,CN=group,DC=example,DC=com"
         rooms: "room 2"
       - cn: "CN=yet,CN=another,CN=group,DC=example,DC=com"
         rooms:
           - "room 1"
           - "room 2"
     [...]

Describe alternatives you've considered
I considered using the maubot plugin here: https://github.com/davidmehren/maubot-ldap-inviter but it has 2 mayor drawbacks: it doesn't remove users from rooms and it has to be invoked manually by command.

@richvdh
Copy link
Member

richvdh commented Aug 1, 2022

somewhat related to matrix-org/synapse#10791

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

No branches or pull requests

3 participants