forked from github/dataease
Merge pull request #4301 from dataease/pr@dev@fix_ldap_test_conn
fix(ldap): 测试连接以表单信息为准
This commit is contained in:
commit
4a2f127b86
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user