Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Fix AD/LDAP group-to-role conversion #285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adalinesimonian
Copy link
Member

Fixes #284 and issue described in d5dbcb1

`connectUser` is the user object as defined by Anvil Connect, which does
not contain `_groups`. `user` is the user object returned by the AD/LDAP
client, which contains `_groups`.
Prior, a user with AD/LDAP groups without equivalent roles in Anvil
Connect would still have those roles assigned, creating user-to-role
relations in the database that referred to non-existent roles. This in
turn caused errors elsewhere in the server whenever the roles were
enumerated, in particular when attempting to dereference the `name`
property of a null role.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant