Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
df569848
Commit
df569848
authored
Apr 07, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.5.3' into MVP1.5.3
parents
b5fc512c
98189d05
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
application.properties
...ifu-common-ldap/src/main/resources/application.properties
+2
-2
ldapConfig.properties
...yifu-common-ldap/src/main/resources/ldapConfig.properties
+2
-2
SysUserServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysUserServiceImpl.java
+3
-1
No files found.
yifu-common/yifu-common-ldap/src/main/resources/application.properties
View file @
df569848
spring.ldap.urls
=
ldap://192.168.
0.240
:389
spring.ldap.urls
=
ldap://192.168.
1.65
:389
spring.ldap.username
=
cn=admin,dc=worfu,dc=com
spring.ldap.username
=
cn=admin,dc=worfu,dc=com
spring.ldap.password
=
Y
ifu123456!
spring.ldap.password
=
y
ifu123456!
spring.ldap.base
=
dc=worfu,dc=com
spring.ldap.base
=
dc=worfu,dc=com
\ No newline at end of file
yifu-common/yifu-common-ldap/src/main/resources/ldapConfig.properties
View file @
df569848
ldap.url
=
192.168.
0.240
ldap.url
=
192.168.
1.65
ldap.port
=
389
ldap.port
=
389
ldap.userName
=
cn=admin,dc=worfu,dc=com
ldap.userName
=
cn=admin,dc=worfu,dc=com
ldap.password
=
Y
ifu123456!
ldap.password
=
y
ifu123456!
ldap.dn
=
dc=worfu,dc=com
ldap.dn
=
dc=worfu,dc=com
ldap.baseDn
=
ou=
\u7696\u
4FE1
\u
4EBA
\u
529B
\u
96C6
\u
56E2,ou=wanxin,dc=worfu,dc=com
ldap.baseDn
=
ou=
\u7696\u
4FE1
\u
4EBA
\u
529B
\u
96C6
\u
56E2,ou=wanxin,dc=worfu,dc=com
\ No newline at end of file
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysUserServiceImpl.java
View file @
df569848
...
@@ -187,7 +187,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
...
@@ -187,7 +187,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
user
.
setPassword
(
ENCODER
.
encode
(
password
));
user
.
setPassword
(
ENCODER
.
encode
(
password
));
}
else
{
}
else
{
// 登录失败,随机密码,保证用户密码不一致
// 登录失败,随机密码,保证用户密码不一致
user
.
setPassword
(
password
+
RandomUtil
.
getSix
());
user
=
null
;
//user.setPassword(password+RandomUtil.getSix());
throw
new
RuntimeException
(
"LDAP登录失败:"
+
username
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"LDAP登录异常"
,
e
);
log
.
error
(
"LDAP登录异常"
,
e
);
...
...
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