新增LDAP的部门同步

This commit is contained in:
xxx
2023-09-20 16:33:58 +08:00
parent a82e2992b4
commit b685a21717
10 changed files with 176 additions and 18 deletions

View File

@@ -276,16 +276,6 @@ public class AppConfigCheck implements CommandLineRunner {
setHelp("从LDAP根节点搜索用户");
}
},
new AppConfig() {
{
setName("附件用户DN");
setSort(70);
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_TEXT);
setKeyName(ConfigConstant.LDAP_USER_DN_PREFIX);
setKeyValue("");
setHelp("搜索用户时基于基础DN的搜索范围限制");
}
},
});
}
};

View File

@@ -37,6 +37,21 @@ public class UpgradeCheck implements CommandLineRunner {
@Override
public void run(String... args) throws Exception {
upgrade_v1_beta7();
upgrade_v1_4();
}
private void upgrade_v1_4() {
appConfigService.remove(
appConfigService
.query()
.getWrapper()
.in(
"key_name",
new ArrayList<>() {
{
add("ldap.user_dn_prefix");
}
}));
}
private void upgrade_v1_beta7() {