return ok(views.html.system.ldap.index.render(currentUser(), breadcrumbs(), ldapSettingsForm));
}
public Result apiTestLdapConnection() {
final DynamicForm dynamicForm = form().bindFromRequest("url", "systemUsername", "systemPassword", "ldapType", "useStartTls", "trustAllCertificates");
final Map<String, String> formData = dynamicForm.data();
LdapConnectionTestResponse result;
try {
final LdapTestConnectionRequest request = getLdapTestConnectionRequest(formData);
request.testConnectOnly = true;
result = ldapSettingsService.testLdapConfiguration(request);