directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject directory-kerby git commit: Get ticket life time from config.
Date Mon, 31 Jul 2017 11:51:00 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/1.0.x-fixes 8e28d25bb -> 508760d6a


Get ticket life time from config.


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

Branch: refs/heads/1.0.x-fixes
Commit: 508760d6a9d1c5b8735f3371e1e77035e5f653f5
Parents: 8e28d25
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Wed Jul 26 10:41:29 2017 +0800
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Jul 31 12:46:23 2017 +0100

----------------------------------------------------------------------
 kerby-dist/tool-dist/conf/krb5.conf                                | 1 +
 .../java/org/apache/kerby/kerberos/kerb/client/KrbContext.java     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/508760d6/kerby-dist/tool-dist/conf/krb5.conf
----------------------------------------------------------------------
diff --git a/kerby-dist/tool-dist/conf/krb5.conf b/kerby-dist/tool-dist/conf/krb5.conf
index 8e024e3..8872dc1 100644
--- a/kerby-dist/tool-dist/conf/krb5.conf
+++ b/kerby-dist/tool-dist/conf/krb5.conf
@@ -22,6 +22,7 @@
     kdc_udp_port = 88
     kdc_tcp_port = 88
     pkinit_anchors = /etc/krb5/cacert.pem
+    ticket_lifetime = 3600
 
 [realms]
     EXAMPLE.COM = {

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/508760d6/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbContext.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbContext.java
b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbContext.java
index b74b4fc..1534f90 100644
--- a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbContext.java
+++ b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbContext.java
@@ -66,7 +66,7 @@ public class KrbContext {
      * @return The ticket valid time
      */
     public long getTicketValidTime() {
-        return 8 * 60 * 60 * 1000;
+        return getConfig().getTicketLifetime() * 1000;
     }
 
     /**


Mime
View raw message