Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Add support for admin status sync #40

Closed
wants to merge 3 commits into from

Conversation

JulianJacobi
Copy link

This would adds the possibility to sync the status of the isAdmin flag based on ldap group membership.

Therefor i added two new configuration options:

LDAP_SYNC_ADMIN_STATUS: boolean flag to enable admin status sync
LDAP_SYNC_ADMIN_GROUPS: comma separated list of groups. If an ldap synced user ist member of any of this groups the admin flag will be set to true.

The sync check will performed on every login.

Additionally i've added a feature wich prevents the first user who logged in to the system automatically get root, even if he's not in a privileged group.

I think this pull request solves issue #19

xet7 added a commit to wekan/wekan that referenced this pull request Mar 6, 2019
Examples: LDAP_SYNC_ADMIN_STATUS=true, LDAP_SYNC_ADMIN_GROUP=group1,group2

Thanks to JulianJacobi and xet7 !
xet7 added a commit to wekan/wekan that referenced this pull request Mar 6, 2019
Examples: LDAP_SYNC_ADMIN_STATUS=true, LDAP_SYNC_ADMIN_GROUP=group1,group2 (7e451d9).
Thanks to JulianJacobi and xet7.
@xet7
Copy link
Member

xet7 commented Mar 6, 2019

Closes #19

@xet7 xet7 closed this Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants