directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng, Kai" <kai.zh...@intel.com>
Subject RE: directory-kerby git commit: Fixed GSS test failures
Date Tue, 30 Jun 2015 05:20:22 GMT
The test failures caused by previous commit were fixed.

-----Original Message-----
From: drankye@apache.org [mailto:drankye@apache.org] 
Sent: Tuesday, June 30, 2015 1:19 PM
To: commits@directory.apache.org
Subject: directory-kerby git commit: Fixed GSS test failures

Repository: directory-kerby
Updated Branches:
  refs/heads/master d49d73da3 -> d66905229


Fixed GSS test failures


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/d6690522
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/d6690522
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/d6690522

Branch: refs/heads/master
Commit: d669052290bb34231ec0b40fba98ee1cac6491a0
Parents: d49d73d
Author: drankye <kai.zheng@intel.com>
Authored: Tue Jun 30 21:16:41 2015 +0800
Committer: Drankye <drankye@gmail.com>
Committed: Tue Jun 30 21:16:41 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kerb/server/Krb5Conf.java   | 6 ++----
 kerby-kerb/kerb-simplekdc/src/main/resources/krb5.conf         | 1 +
 2 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d6690522/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/server/Krb5Conf.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/server/Krb5Conf.java
b/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/server/Krb5Conf.java
index b96ba50..d13b3e6 100644
--- a/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/server/Krb5Conf.java
+++ b/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/server/Krb5Conf.java
@@ -40,10 +40,8 @@ public class Krb5Conf {
         content = content.replaceAll("_PORT_",
                 String.valueOf(kdcPort));
 
-        if (setting.allowUdp()) {
-            int udpLimit = setting.allowUdp() ? 1 : 4096;
-            content = content.replaceAll("_UDP_LIMIT_", String.valueOf(udpLimit));
-        }
+        int udpLimit = setting.allowUdp() ? 4096 : 1;
+        content = content.replaceAll("_UDP_LIMIT_", String.valueOf(udpLimit));
 
         File confFile = new File(kdcServer.getWorkDir(), KRB5_CONF_FILE);
         IOUtil.writeFile(content, confFile);

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d6690522/kerby-kerb/kerb-simplekdc/src/main/resources/krb5.conf
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-simplekdc/src/main/resources/krb5.conf b/kerby-kerb/kerb-simplekdc/src/main/resources/krb5.conf
index 6ee7d8f..511587c 100644
--- a/kerby-kerb/kerb-simplekdc/src/main/resources/krb5.conf
+++ b/kerby-kerb/kerb-simplekdc/src/main/resources/krb5.conf
@@ -1,5 +1,6 @@
 [libdefaults]
     default_realm = _REALM_
+    udp_preference_limit = _UDP_LIMIT_
 
 [realms]
     _REALM_ = {


Mime
View raw message