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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants