wekan / ldap

LDAP support for Wekan code has been moved to https://github.com/wekan/wekan/tree/master/packages/wekan-ldap , issues to https://github.com/wekan/wekan/issues , and if PRs are needed please add them instead to https://github.com/wekan/wekan/pulls
https://github.com/wekan/wekan/tree/master/packages/wekan-ldap
MIT License
12 stars 10 forks source link

Add support for admin status sync #40

Closed JulianJacobi closed 5 years ago

JulianJacobi commented 5 years ago

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 commented 5 years ago

Closes #19