Merge pull request '🐘更正同步域提示信息' (#196) from KaneLeung/Admin.NET.Pro:main into main
Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/196
This commit is contained in:
commit
048fca377c
@ -190,7 +190,8 @@ public class SysLdapService : IDynamicApiController, ITransient
|
||||
try
|
||||
{
|
||||
ldapConn.Connect(sysLdap.Host, sysLdap.Port);
|
||||
ldapConn.Bind(sysLdap.Version, sysLdap.BindDn, sysLdap.BindPass);
|
||||
string bindPass = CryptogramUtil.Decrypt(sysLdap.BindPass);
|
||||
ldapConn.Bind(sysLdap.Version, sysLdap.BindDn, bindPass);
|
||||
var ldapSearchResults = ldapConn.Search(sysLdap.BaseDn, LdapConnection.ScopeOne, "(objectClass=*)", null, false);
|
||||
var userLdapList = new List<SysUserLdap>();
|
||||
while (ldapSearchResults.HasMore())
|
||||
|
||||
@ -224,7 +224,7 @@ const gridEvents: VxeGridListeners<SysLdap> = {
|
||||
|
||||
// 同步域账户
|
||||
const handleSync = (row: any) => {
|
||||
ElMessageBox.confirm(`确定要删除域登录信息配置:【${row.host}】?`, '提示', {
|
||||
ElMessageBox.confirm(`确定要同步域登录信息配置:【${row.host}】?`, '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
@ -232,7 +232,7 @@ const handleSync = (row: any) => {
|
||||
.then(async () => {
|
||||
await getAPI(SysLdapApi).apiSysLdapSyncUserPost({ id: row.id });
|
||||
handleQuery();
|
||||
ElMessage.success('删除成功');
|
||||
ElMessage.success('同步成功');
|
||||
})
|
||||
.catch(() => {});
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user