Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
b8aead8f
提交
b8aead8f
authored
6 年前
作者:
mysinmyc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
typo
上级
846b0f1a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
+4
-4
features.html
h2/src/docsrc/html/features.html
+1
-1
DefaultAuthenticator.java
h2/src/main/org/h2/security/auth/DefaultAuthenticator.java
+3
-3
没有找到文件。
h2/src/docsrc/html/features.html
浏览文件 @
b8aead8f
...
...
@@ -1844,7 +1844,7 @@ is the identifier of the authentication realm (see later).
</p>
<p>
External authentication requires to send password to the server. For this reason is works only on local connection or remote over ssl
</p>
<p>
By default external authentication is performed trough JAAS login interface (configuration name is
<code>
h2
</code>
).
By default external authentication is performed t
h
rough JAAS login interface (configuration name is
<code>
h2
</code>
).
To configure JAAS add argument
<code>
-Djava.security.auth.login.config=jaas.conf
</code>
Here an example of
<a
href=
"https://docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/LoginConfigFile.html"
>
JAAS login configuration file
</a>
content:
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/security/auth/DefaultAuthenticator.java
浏览文件 @
b8aead8f
...
...
@@ -34,17 +34,17 @@ import org.h2.util.StringUtils;
* <p>
* When client connectionInfo contains property AUTHREALM={realName} credentials
* (typically user id and password) are validated by
* by {@link org.h2.
api
.CredentialsValidator} configured for that realm.
* by {@link org.h2.
security.auth
.CredentialsValidator} configured for that realm.
* </p>
* <p>
* When client connectionInfo doesn't contains AUTHREALM property credentials
* are validated internally on the database
* </p>
* <p>
* Rights assignment can be managed t
rough {@link org.h2.api
.UserToRolesMapper}
* Rights assignment can be managed t
hrough {@link org.h2.security.auth
.UserToRolesMapper}
* </p>
* <p>
* Default configuration has a realm H2 that validate credentials trough JAAS api (appName=h2).
* Default configuration has a realm H2 that validate credentials t
h
rough JAAS api (appName=h2).
* To customize configuration set h2.authConfigFile system property to refer a valid h2auth.xml config file
* </p>
*/
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论