Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yujianwangzivayy
MaxKey
提交
291ca6e9
MaxKey
项目概览
yujianwangzivayy
/
MaxKey
与 Fork 源项目一致
Fork自
MaxKey单点登录官方(MaxKeyTop) / MaxKey
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MaxKey
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
291ca6e9
编写于
7月 22, 2021
作者:
M
MaxKey
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ActiveDirectory PASSWORD FIX
上级
233307f3
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
17 addition
and
4 deletion
+17
-4
maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/realm/activedirectory/ActiveDirectoryServer.java
...ey/authn/realm/activedirectory/ActiveDirectoryServer.java
+7
-2
maxkey-web-manage/src/main/resources/application.properties
maxkey-web-manage/src/main/resources/application.properties
+1
-1
maxkey-web-maxkey/src/main/resources/application-http.properties
...web-maxkey/src/main/resources/application-http.properties
+8
-0
maxkey-web-maxkey/src/main/resources/application.properties
maxkey-web-maxkey/src/main/resources/application.properties
+1
-1
未找到文件。
maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/realm/activedirectory/ActiveDirectoryServer.java
浏览文件 @
291ca6e9
...
...
@@ -41,8 +41,13 @@ public final class ActiveDirectoryServer implements IAuthenticationServer {
*/
@Override
public
boolean
authenticate
(
String
username
,
String
password
)
{
ActiveDirectoryUtils
ldapPassWordValid
=
new
ActiveDirectoryUtils
(
activeDirectoryUtils
.
getProviderUrl
(),
activeDirectoryUtils
.
getDomain
()+
"\\"
+
username
,
password
,
activeDirectoryUtils
.
getDomain
());
ActiveDirectoryUtils
ldapPassWordValid
=
new
ActiveDirectoryUtils
(
activeDirectoryUtils
.
getProviderUrl
(),
username
,
password
,
activeDirectoryUtils
.
getDomain
()
);
ldapPassWordValid
.
openConnection
();
if
(
ldapPassWordValid
.
getCtx
()!=
null
){
_logger
.
debug
(
"Active Directory user "
+
username
+
" is validate ."
);
...
...
maxkey-web-manage/src/main/resources/application.properties
浏览文件 @
291ca6e9
...
...
@@ -17,7 +17,7 @@
############################################################################
application.title
=
MaxKey
application.name
=
MaxKey-Mgt
application.formatted-version
=
v2.8.
1
GA
application.formatted-version
=
v2.8.
2
GA
############################################################################
#MaxKey Server configuration #
...
...
maxkey-web-maxkey/src/main/resources/application-http.properties
浏览文件 @
291ca6e9
...
...
@@ -274,15 +274,23 @@ maxkey.support.ldap.jit=false
maxkey.support.ldap.product
=
openldap
maxkey.support.ldap.ssl
=
false
maxkey.support.ldap.providerurl
=
ldap://localhost:389
#openldap normal
maxkey.support.ldap.principal
=
cn=Manager,dc=maxcrc,dc=com
#activedirectory
#maxkey.support.ldap.principal=administrator
maxkey.support.ldap.credentials
=
secret
maxkey.support.ldap.basedn
=
dc=maxcrc,dc=com
#openldap normal
#maxkey.support.ldap.filter=(uid=%s)
maxkey.support.ldap.filter
=
(uid=%s)
#activedirectory
#maxkey.support.ldap.filter=(sAMAccountname=%s)
maxkey.support.ldap.truststore
=
maxkey
maxkey.support.ldap.truststorepassword
=
maxkey
#activedirectory effective
maxkey.support.ldap.activedirectory.domain
=
MAXKEY.ORG
#############################################################################
#WsFederation Login support configuration
#identifier: the identifer for the ADFS server
...
...
maxkey-web-maxkey/src/main/resources/application.properties
浏览文件 @
291ca6e9
...
...
@@ -17,7 +17,7 @@
############################################################################
application.title
=
MaxKey
application.name
=
MaxKey
application.formatted-version
=
v2.8.
1
GA
application.formatted-version
=
v2.8.
2
GA
############################################################################
#spring.profiles.active https/http; default https #
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录