Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
3179dda2
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3179dda2
编写于
8月 20, 2010
作者:
K
ksrini
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
a1c492e8
ee186d15
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
105 addition
and
5 deletion
+105
-5
make/common/shared/Defs-windows.gmk
make/common/shared/Defs-windows.gmk
+1
-1
make/common/shared/Defs.gmk
make/common/shared/Defs.gmk
+8
-3
src/share/classes/com/sun/jndi/ldap/Connection.java
src/share/classes/com/sun/jndi/ldap/Connection.java
+2
-1
src/share/lib/security/java.security-solaris
src/share/lib/security/java.security-solaris
+27
-0
src/share/lib/security/java.security-windows
src/share/lib/security/java.security-windows
+27
-0
test/sun/security/krb5/BadKdcDefaultValue.java
test/sun/security/krb5/BadKdcDefaultValue.java
+40
-0
未找到文件。
make/common/shared/Defs-windows.gmk
浏览文件 @
3179dda2
...
@@ -89,7 +89,7 @@ define FullPath
...
@@ -89,7 +89,7 @@ define FullPath
$(shell $(CYGPATH_CMD) $1 2> $(DEV_NULL))
$(shell $(CYGPATH_CMD) $1 2> $(DEV_NULL))
endef
endef
define OptFullPath
define OptFullPath
$(shell if [ "$1" != "" -a -d "$1" ]; then $(CYGPATH_CMD) "$1"; else echo "$1"; fi)
$(shell if [ "$1" != "" -a -d "$1" ]; then $(CYGPATH_CMD) "$1"
2> $(DEV_NULL)
; else echo "$1"; fi)
endef
endef
else
else
# Temporary until we upgrade to MKS 8.7, MKS pwd returns mixed mode path
# Temporary until we upgrade to MKS 8.7, MKS pwd returns mixed mode path
...
...
make/common/shared/Defs.gmk
浏览文件 @
3179dda2
...
@@ -136,15 +136,20 @@ define GetVersion
...
@@ -136,15 +136,20 @@ define GetVersion
$(shell echo $1 | sed -e 's@[^0-9]*\([0-9][0-9]*\.[0-9][.0-9]*\).*@\1@' )
$(shell echo $1 | sed -e 's@[^0-9]*\([0-9][0-9]*\.[0-9][.0-9]*\).*@\1@' )
endef
endef
# Return one part of the version numbers, watch out for non digits.
define VersionWord # Number Version
$(word $1,$(subst ., ,$(subst -, ,$2)))
endef
# Given a major.minor.micro version, return the major, minor, or micro number
# Given a major.minor.micro version, return the major, minor, or micro number
define MajorVersion
define MajorVersion
$(if $(
word 1, $(subst ., ,$1)),$(word 1, $(subst ., ,$1)
),0)
$(if $(
call VersionWord,1,$1),$(call VersionWord,1,$1
),0)
endef
endef
define MinorVersion
define MinorVersion
$(if $(
word 2, $(subst ., ,$1)),$(word 2, $(subst ., ,$1)
),0)
$(if $(
call VersionWord,2,$1),$(call VersionWord,2,$1
),0)
endef
endef
define MicroVersion
define MicroVersion
$(if $(
word 3, $(subst ., ,$1)),$(word 3, $(subst ., ,$1)
),0)
$(if $(
call VersionWord,3,$1),$(call VersionWord,3,$1
),0)
endef
endef
# Macro that returns missing, same, newer, or older $1=version $2=required
# Macro that returns missing, same, newer, or older $1=version $2=required
...
...
src/share/classes/com/sun/jndi/ldap/Connection.java
浏览文件 @
3179dda2
...
@@ -813,7 +813,8 @@ public final class Connection implements Runnable {
...
@@ -813,7 +813,8 @@ public final class Connection implements Runnable {
try
{
try
{
while
(
true
)
{
while
(
true
)
{
try
{
try
{
inbuf
=
new
byte
[
10
];
// type and length (at most 128 octets for long form)
inbuf
=
new
byte
[
129
];
offset
=
0
;
offset
=
0
;
seqlen
=
0
;
seqlen
=
0
;
...
...
src/share/lib/security/java.security-solaris
浏览文件 @
3179dda2
...
@@ -260,3 +260,30 @@ networkaddress.cache.negative.ttl=10
...
@@ -260,3 +260,30 @@ networkaddress.cache.negative.ttl=10
# Example,
# Example,
# ocsp.responderCertSerialNumber=2A:FF:00
# ocsp.responderCertSerialNumber=2A:FF:00
#
# Policy for failed Kerberos KDC lookups:
#
# When a KDC is unavailable (network error, service failure, etc), it is
# put inside a blacklist and accessed less often for future requests. The
# value (case-insensitive) for this policy can be:
#
# tryLast
# KDCs in the blacklist are always tried after those not on the list.
#
# tryLess[:max_retries,timeout]
# KDCs in the blacklist are still tried by their order in the configuration,
# but with smaller max_retries and timeout values. max_retries and timeout
# are optional numerical parameters (default 1 and 5000, which means once
# and 5 seconds). Please notes that if any of the values defined here is
# more than what is defined in krb5.conf, it will be ignored.
#
# Whenever a KDC is detected as available, it is removed from the blacklist.
# The blacklist is reset when krb5.conf is reloaded. You can add
# refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
# reloaded whenever a JAAS authentication is attempted.
#
# Example,
# krb5.kdc.bad.policy = tryLast
# krb5.kdc.bad.policy = tryLess:2,2000
krb5.kdc.bad.policy = tryLast
src/share/lib/security/java.security-windows
浏览文件 @
3179dda2
...
@@ -260,3 +260,30 @@ networkaddress.cache.negative.ttl=10
...
@@ -260,3 +260,30 @@ networkaddress.cache.negative.ttl=10
# Example,
# Example,
# ocsp.responderCertSerialNumber=2A:FF:00
# ocsp.responderCertSerialNumber=2A:FF:00
#
# Policy for failed Kerberos KDC lookups:
#
# When a KDC is unavailable (network error, service failure, etc), it is
# put inside a blacklist and accessed less often for future requests. The
# value (case-insensitive) for this policy can be:
#
# tryLast
# KDCs in the blacklist are always tried after those not on the list.
#
# tryLess[:max_retries,timeout]
# KDCs in the blacklist are still tried by their order in the configuration,
# but with smaller max_retries and timeout values. max_retries and timeout
# are optional numerical parameters (default 1 and 5000, which means once
# and 5 seconds). Please notes that if any of the values defined here is
# more than what is defined in krb5.conf, it will be ignored.
#
# Whenever a KDC is detected as available, it is removed from the blacklist.
# The blacklist is reset when krb5.conf is reloaded. You can add
# refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
# reloaded whenever a JAAS authentication is attempted.
#
# Example,
# krb5.kdc.bad.policy = tryLast
# krb5.kdc.bad.policy = tryLess:2,2000
krb5.kdc.bad.policy = tryLast
test/sun/security/krb5/BadKdcDefaultValue.java
0 → 100644
浏览文件 @
3179dda2
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6976536
* @summary Solaris JREs do not have the krb5.kdc.bad.policy configured by default.
* @run main/othervm BadKdcDefaultValue
*/
import
java.security.Security
;
public
class
BadKdcDefaultValue
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
if
(!
"tryLast"
.
equalsIgnoreCase
(
Security
.
getProperty
(
"krb5.kdc.bad.policy"
)))
{
throw
new
Exception
(
"Default value not correct"
);
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录