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
c1349953
Unverified
Commit
c1349953
authored
Jun 10, 2023
by
gaoyan
Committed by
GitHub
Jun 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LDAP is prohibited in conflict with the local user. (#2050)
* LDAP is prohibited in conflict with the local user. * LDAP is prohibited in conflict with the local user.
parent
0b77ae0a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
UserServiceImpl.java
...src/main/java/org/dinky/service/impl/UserServiceImpl.java
+2
-0
Status.java
dinky-common/src/main/java/org/dinky/data/enums/Status.java
+5
-0
No files found.
dinky-admin/src/main/java/org/dinky/service/impl/UserServiceImpl.java
View file @
c1349953
...
@@ -229,6 +229,8 @@ public class UserServiceImpl extends SuperServiceImpl<UserMapper, User> implemen
...
@@ -229,6 +229,8 @@ public class UserServiceImpl extends SuperServiceImpl<UserMapper, User> implemen
userIds
.
add
(
user
.
getId
());
userIds
.
add
(
user
.
getId
());
tenantService
.
assignUserToTenant
(
new
AssignUserToTenantParams
(
tenant
.
getId
(),
userIds
));
tenantService
.
assignUserToTenant
(
new
AssignUserToTenantParams
(
tenant
.
getId
(),
userIds
));
return
user
;
return
user
;
}
else
if
(
userFromLocal
.
getUserType
()
!=
UserType
.
LDAP
.
getCode
())
{
throw
new
AuthException
(
Status
.
LDAP_LOGIN_FORBID
);
}
}
// If local database have the user and ldap login is pass,
// If local database have the user and ldap login is pass,
...
...
dinky-common/src/main/java/org/dinky/data/enums/Status.java
View file @
c1349953
...
@@ -210,6 +210,11 @@ public enum Status {
...
@@ -210,6 +210,11 @@ public enum Status {
"If the user filter rule cannot be empty, enter the relevant configuration"
,
"If the user filter rule cannot be empty, enter the relevant configuration"
,
"用户过滤规则不能为空,请填写相关配置"
),
"用户过滤规则不能为空,请填写相关配置"
),
LDAP_LOGIN_FORBID
(
18007
,
"If the current user login mode is not LDAP, contact the administrator to modify it, or do not use LDAP to log in"
,
"当前用户登录模式不是LDAP,请联系管理员修改,或不使用LDAP登录"
),
/** global exception */
/** global exception */
GLOBAL_PARAMS_CHECK_ERROR
(
90001
,
"Field: {0}, {1}"
,
"字段: {0}, {1}"
),
GLOBAL_PARAMS_CHECK_ERROR
(
90001
,
"Field: {0}, {1}"
,
"字段: {0}, {1}"
),
GLOBAL_PARAMS_CHECK_ERROR_VALUE
(
90002
,
"Field: {0}, Illegal Value: {1}"
,
"字段: {0}, 不合法的值: {1}"
),
GLOBAL_PARAMS_CHECK_ERROR_VALUE
(
90002
,
"Field: {0}, Illegal Value: {1}"
,
"字段: {0}, 不合法的值: {1}"
),
...
...
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