Added ability to set custom ldap group -> role mapping

Added input in role form to allow matching against custom names.
Changed default mapping to use role display name instead of the hidden
DB name.
This commit is contained in:
Dan Brown
2018-07-15 19:34:42 +01:00
parent be2ca9d4bb
commit f421d83627
9 changed files with 148 additions and 28 deletions

View File

@@ -71,8 +71,6 @@ LDAP_VERSION=false
LDAP_USER_TO_GROUPS=false
# What is the LDAP attribute for group memberships
LDAP_GROUP_ATTRIBUTE="memberOf"
# What LDAP group should the user be a part of to be an admin on BookStack
LDAP_ADMIN_GROUP="Domain Admins"
# Would you like to remove users from roles on BookStack if they do not match on LDAP
# If false, the ldap groups-roles sync will only add users to roles
LDAP_REMOVE_FROM_GROUPS=false