Merge pull request #4301 from dataease/pr@dev@fix_ldap_test_conn

fix(ldap): 测试连接以表单信息为准
This commit is contained in:
fit2cloud-chenyw 2023-01-05 16:50:23 +08:00 committed by GitHub
commit 4a2f127b86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,10 +31,10 @@ public class XLdapServer {
}
@PostMapping("/testConn")
public void testConn() {
public void testConn(@RequestBody List<SysSettingDto> settings) {
LdapXpackService ldapXpackService = SpringContextUtil.getBean(LdapXpackService.class);
try {
ldapXpackService.testConn();
ldapXpackService.testConn(settings);
}catch(Exception e) {
throw new RuntimeException(e);
}