mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 22:15:51 +01:00
LDAP authentication by using bind account
This commit is contained in:
committed by
Tomofumi Tanaka
parent
b9aa6a234b
commit
bfc1d1d6b0
@@ -27,9 +27,11 @@ trait SystemSettingsControllerBase extends ControllerBase with FlashMapSupport {
|
||||
"ldap" -> optionalIfNotChecked("ldapAuthentication", mapping(
|
||||
"host" -> trim(label("LDAP host", text(required))),
|
||||
"port" -> trim(label("LDAP port", optional(number()))),
|
||||
"baseDN" -> trim(label("BaseDN", text(required))),
|
||||
"userNameAttribute" -> trim(label("User name attribute", text(required))),
|
||||
"mailAttribute" -> trim(label("Mail address attribute", text(required)))
|
||||
"bindDN" -> trim(label("Bind DN", text(required))),
|
||||
"bindPassword" -> trim(label("Bind Password", text(required))),
|
||||
"baseDN" -> trim(label("Base DN", text(required))),
|
||||
"userNameAttribute" -> trim(label("User name attribute", text(required))),
|
||||
"mailAttribute" -> trim(label("Mail address attribute", text(required)))
|
||||
)(Ldap.apply))
|
||||
)(SystemSettings.apply)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user