This is a port of gogs/gogs#4398
The only changes made by myself are:
Add locales
Add some JS to the UI
Otherwise all code credit goes to @aboronResolves#10829
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
log.Trace("Fetching attributes '%v', '%v', '%v', '%v', '%v' with filter %s and base %s",ls.AttributeUsername,ls.AttributeName,ls.AttributeSurname,ls.AttributeMail,ls.AttributeSSHPublicKey,userFilter,userDN)
log.Trace("Fetching attributes '%v', '%v', '%v', '%v', '%v', '%v' with filter '%s' and base '%s'",ls.AttributeUsername,ls.AttributeName,ls.AttributeSurname,ls.AttributeMail,ls.AttributeSSHPublicKey,ls.UserUID,userFilter,userDN)
auths.restricted_filter_helper=Leave empty to not set any users as restricted. Use an asterisk ('*') to set all users that do not match Admin Filter as restricted.
auths.verify_group_membership=Verify group membership in LDAP
auths.group_search_base=Group Search Base DN
auths.valid_groups_filter=Valid Groups Filter
auths.group_attribute_list_users=Group Attribute Containing List Of Users
auths.user_attribute_in_group=User Attribute Listed In Group