Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
48b7a66e
Unverified
Commit
48b7a66e
authored
Jan 31, 2024
by
Zzm0809
Committed by
GitHub
Jan 31, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Doc] modify ldap doc (#3113)
Co-authored-by:
Zzm0809
<
Zzm0809@users.noreply.github.com
>
parent
8bc63561
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
22 deletions
+42
-22
ConsoleContent.tsx
...ges/DataStudio/BottomContainer/Console/ConsoleContent.tsx
+6
-5
ldap.md
docs/docs/user_guide/system_setting/global_settings/ldap.md
+36
-17
No files found.
dinky-web/src/pages/DataStudio/BottomContainer/Console/ConsoleContent.tsx
View file @
48b7a66e
...
@@ -22,6 +22,7 @@ import { SseData } from '@/models/Sse';
...
@@ -22,6 +22,7 @@ import { SseData } from '@/models/Sse';
import
{
DataStudioTabsItemType
,
StateType
,
VIEW
}
from
'@/pages/DataStudio/model'
;
import
{
DataStudioTabsItemType
,
StateType
,
VIEW
}
from
'@/pages/DataStudio/model'
;
import
{
SSE_TOPIC
}
from
'@/pages/DevOps/constants'
;
import
{
SSE_TOPIC
}
from
'@/pages/DevOps/constants'
;
import
{
API_CONSTANTS
}
from
'@/services/endpoints'
;
import
{
API_CONSTANTS
}
from
'@/services/endpoints'
;
import
{
JobStatus
}
from
'@/types/Studio/data.d'
;
import
{
parseMilliSecondStr
}
from
'@/utils/function'
;
import
{
parseMilliSecondStr
}
from
'@/utils/function'
;
import
{
SplitPane
}
from
'@andrewray/react-multi-split-pane'
;
import
{
SplitPane
}
from
'@andrewray/react-multi-split-pane'
;
import
{
Pane
}
from
'@andrewray/react-multi-split-pane/dist/lib/Pane'
;
import
{
Pane
}
from
'@andrewray/react-multi-split-pane/dist/lib/Pane'
;
...
@@ -84,10 +85,10 @@ const ConsoleContent = (props: ConsoleProps) => {
...
@@ -84,10 +85,10 @@ const ConsoleContent = (props: ConsoleProps) => {
return
data
;
return
data
;
});
});
setSelectNode
((
prevState
:
any
)
=>
{
setSelectNode
((
prevState
:
any
)
=>
{
if
(
prevState
&&
prevState
.
key
==
data
.
lastUpdateStep
.
key
)
{
if
(
prevState
&&
data
?.
lastUpdateStep
&&
prevState
.
key
=
==
data
.
lastUpdateStep
.
key
)
{
//更新当前节点
//更新当前节点
return
data
.
lastUpdateStep
;
return
data
.
lastUpdateStep
;
}
else
if
(
!
prevState
||
prevState
.
key
==
data
.
key
)
{
}
else
if
(
!
prevState
||
prevState
.
key
==
=
data
.
key
)
{
//未选择节点状态下选择根节点
//未选择节点状态下选择根节点
return
data
;
return
data
;
}
}
...
@@ -113,11 +114,11 @@ const ConsoleContent = (props: ConsoleProps) => {
...
@@ -113,11 +114,11 @@ const ConsoleContent = (props: ConsoleProps) => {
const
duration
=
node
.
time
?
node
.
time
:
endDate
.
getTime
()
-
startDate
.
getTime
();
const
duration
=
node
.
time
?
node
.
time
:
endDate
.
getTime
()
-
startDate
.
getTime
();
return
(
return
(
<
Space
size=
{
5
}
>
<
Space
size=
{
5
}
>
{
node
.
status
==
'RUNNING'
&&
<
LoadingOutlined
/>
}
{
node
.
status
==
=
JobStatus
.
RUNNING
&&
<
LoadingOutlined
/>
}
{
node
.
status
==
'FINISHED'
&&
(
{
node
.
status
==
=
JobStatus
.
FINISHED
&&
(
<
CheckOutlined
style=
{
{
color
:
'green'
,
fontWeight
:
'bold'
}
}
/>
<
CheckOutlined
style=
{
{
color
:
'green'
,
fontWeight
:
'bold'
}
}
/>
)
}
)
}
{
node
.
status
==
'FAILED'
&&
(
{
node
.
status
==
=
JobStatus
.
FAILED
&&
(
<
CloseCircleFilled
style=
{
{
color
:
'red'
,
fontWeight
:
'bold'
}
}
/>
<
CloseCircleFilled
style=
{
{
color
:
'red'
,
fontWeight
:
'bold'
}
}
/>
)
}
)
}
<
Text
>
{
node
.
title
}
</
Text
>
<
Text
>
{
node
.
title
}
</
Text
>
...
...
docs/docs/user_guide/system_setting/global_settings/ldap.md
View file @
48b7a66e
...
@@ -7,9 +7,9 @@ title: LDAP 配置
...
@@ -7,9 +7,9 @@ title: LDAP 配置
:::info 简介
:::info 简介
为了方便用户使用 Dinky 并与公司内部的用户进行集成时,Dinky 提供了LDAP配置。并支持可视化配置,修改后会自动生效,无需重启
1.
为了方便用户使用 Dinky 并与公司内部的用户进行集成时,Dinky 提供了LDAP配置。并支持可视化配置,修改后会自动生效,无需重启
Dinky 服务。
Dinky 服务。
同时实现了LDAP用户自动
导入功能,开启后,当用户使用LDAP登录时,如果没有相应的Dinky用户映射,则会自动拉取LDAP信息创建一个Dinky用户与之映射。如果关闭此功能,对于未导入的LDAP用户将无法登录。
2.
同时实现了LDAP用户
导入功能,开启后,当用户使用LDAP登录时,如果没有相应的Dinky用户映射,则会自动拉取LDAP信息创建一个Dinky用户与之映射。如果关闭此功能,对于未导入的LDAP用户将无法登录。
:::
:::
...
@@ -32,6 +32,16 @@ LDAP通过提供统一的身份验证服务来解决这个问题。
...
@@ -32,6 +32,16 @@ LDAP通过提供统一的身份验证服务来解决这个问题。
## 3. Dinky与LDAP对接
## 3. Dinky与LDAP对接
:::danger 注意
1.
当你需要配置此功能时, 默认你已经了解LDAP的相关知识, 并且已经在你的公司内部搭建了LDAP服务, 并且你已经拥有了LDAP管理员账号,
或者有权限查询列表的ldap用户。
2.
请确保你的LDAP服务已经正常运行, 并且你的LDAP服务可以被Dinky服务所连接。
3.
如果对接LDAP失败, 请检查你的LDAP服务是否正常运行, 并且检查你的LDAP服务是否可以被Dinky服务所连接。
4.
如果不懂如何配置LDAP/根本不了解LDAP, 请自己百度/谷歌/..., 或者联系你们公司的LDAP管理员。
:::
### 3.1 系统要求
### 3.1 系统要求
在与我们的系统对接LDAP之前,请确保系统满足以下要求:
在与我们的系统对接LDAP之前,请确保系统满足以下要求:
...
@@ -44,18 +54,27 @@ LDAP通过提供统一的身份验证服务来解决这个问题。
...
@@ -44,18 +54,27 @@ LDAP通过提供统一的身份验证服务来解决这个问题。
首先进入
**配置中心**
>
**全局配置**
>
**LDAP设置**
,对参数配置进行修改即可。
首先进入
**配置中心**
>
**全局配置**
>
**LDAP设置**
,对参数配置进行修改即可。
:::tip 提示
1.
所有参数配置完成之后, 请动动你的小手点一下
`测试链接`
, 如果提示
`连接成功`
, 则表示你的LDAP配置成功,
否则请检查你的LDAP服务是否正常运行, 并且检查你的LDAP服务是否可以被Dinky服务所连接。
2.
可以点击 Dinky 提供的
`测试登录`
按钮测试
`登录功能`
是否正常。
3.
可以点击
`导入用户`
按钮, 导入LDAP用户到Dinky中。
:::
**参数配置说明:**
**参数配置说明:**
| 参数名称 | 参数说明 | 默认值 |
| 参数名称 | 参数说明 | 默认值 |
|:-------------|:----------------------------------------------------------------------------------------|:------|
|:-------------|:----------------------------------------------------------------------------------------|:--------------|
| ldap服务地址 | ldap认证服务地址,例如:ldap://192.168.111.1:389 | |
| LDAP 服务地址 | ldap认证服务地址,例如:ldap://192.168.111.1:389 | |
| 登录用户名(DN) | 用于连接ldap服务的用户名,或者管理员DN,例如:cn=admin,dc=jakehu,dc=mez | |
| 登录用户名(DN) | 用于连接ldap服务的用户名,或者管理员DN,例如:cn=admin,dc=jakehu,dc=mez | |
| 登录密码 | 用于连接ldap服务的密码 | |
| 登录密码 | 用于连接ldap服务的密码 | |
| 连接超时 | 连接ldap服务的最大时间,超过则断开 | |
| 连接超时 | 连接ldap服务的最大时间,超过则断开 | |
| 用户基础DN | Dinky会在此基础dn下进行用户搜索,例如:ou=users,dc=dinky,dc=com | |
| 用户基础DN | Dinky会在此基础dn下进行用户搜索,例如:ou=users,dc=dinky,dc=com | |
| 用户过滤规则 | 使用ldap的filter语法进行用户过滤,例如: (&(objectClass=inetOrgPerson)) | |
| 用户过滤规则 | 使用ldap的filter语法进行用户过滤,例如: (&(objectClass=inetOrgPerson)) | |
| 登录时自动映射用户 | 开启后,当用户使用LDAP登录时,如果没有相应的Dinky用户映射,则会自动拉取LDAP信息创建一个Dinky用户与之映射。如果关闭此功能,对于未导入的LDAP用户将无法登录 | true |
| 登录时自动映射用户 | 开启后,当用户使用LDAP登录时,如果没有相应的Dinky用户映射,则会自动拉取LDAP信息创建一个Dinky用户与之映射。如果关闭此功能,对于未导入的LDAP用户将无法登录 | true |
| LDAP导入默认租户编码 | 开启自动导入用户后,新用户登录需要一个默认的租户编码,否则无法登录,请注意租户编码必须在Dinky中存在 | |
| LDAP导入默认租户编码 | 开启自动导入用户后,新用户登录需要一个默认的租户编码,否则无法登录,请注意租户编码必须在Dinky中存在 | DefaultTenant |
| LDAP用户名字段 | 需要填写一个LDAP中用户的属性字段来与Dinky用户对应,必须填写,一般可选为 cn 或者 uid 表示用户唯一标识 | |
| LDAP用户名字段 | 需要填写一个LDAP中用户的属性字段来与Dinky用户对应,必须填写,一般可选为 cn 或者 uid 表示用户唯一标识 | |
| LDAP昵称字段 | 需要填写一个LDAP中用户的属性字段来与Dinky昵称对应,必须填写,一般可选为 sn 或者其他标识,不要求唯一 | |
| LDAP昵称字段 | 需要填写一个LDAP中用户的属性字段来与Dinky昵称对应,必须填写,一般可选为 sn 或者其他标识,不要求唯一 | |
| 是否启用ldap | 开启LDAP登录功能,开启前请先填写上面配置并确保正确配置,请最后修改此项配置 | false |
| 是否启用 LDAP | 开启LDAP登录功能,开启前请先填写上面配置并确保正确配置,请最后修改此项配置 | false |
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment