ma1sd
ma1sd copied to clipboard
LDAP Groups
hi Is it somehow possible to link LDAP Groups with ma1sd and synapse? e.g.
- to create Communities and their members based on LDAP Groups
- create Rooms with Members based on LDAP Groups.
- Using LDAP Groups as roles in ma1sd
Is it planned to implement such features?
kind regards, dennis
I would like to create Rooms with Members based on AD(Microsoft Active Directory) Groups:
- create room by AD group with all group users as room members;
- add/remove users to room by AD group member names.
the functionality in question:
- delete a room if the AD group has been deleted?
In my opinion, groups are the main active directory feature. In our company these groups has been used for almost all internal applications access rights.
As with other organizations, we have regular staff changes, the AD Groups solution would ensure that employees are automatically added to specific matrix rooms that are used to exchange information between projects, departments, etc. This functionality should not only add users to specific rooms, but also remove users from the room if they have changed departments or the like.
I assume the solution should be based on some major AD group, e.g. RIOT, and if we wanted the Matrix to create rooms based on AD groups then the AD groups would have to be associated with this main RIOT AD group. Because it is clear that we would not want all the AD groups in our Matrix as rooms.
for example, it might look like this (&(objectclass=*)(|(memberof=CN=RIOT,OU=Groups,DC=somedomain,DC=eu)))
I think that'd be a great idea!
I think matrix-corporal can do that. I use both ma1sd and matrix-corporal together.
How? Could you elaborate a little further? Thanks @sents !
Matrix corporal uses a json (called policy) to determine the rights, room-, and group membership of users. You can generate such a policy from ldap via a script. Because I needed it, I wrote such a script this weekend https://github.com/sents/matrix-corporal-policy-ldap. If you have any suggestions to make it work for your case, feel free to open an issue. matrix-corporal cannot create rooms and communities, so the script takes care of that too.
Ok, thanks
I think matrix-corporal can do that.
Thanks for this useful hint! In general I am a bit confused how ma1sd handles the LDAP groups. Are they not mapped to roles? At least when I looked into the code it seems the getRoles() function is returning an empty list by default for LDAP.