directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: Get ticket life time from config.
Date Wed, 26 Jul 2017 02:41:42 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk e46d06e31 -> 6d38f80bd


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/6d38f80b
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/6d38f80b
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/6d38f80b

Branch: refs/heads/trunk
Commit: 6d38f80bd9e4952f0f272728a164c7ab00e81e6c
Parents: e46d06e
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Wed Jul 26 10:41:29 2017 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Wed Jul 26 10:41:29 2017 +0800

----------------------------------------------------------------------
 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/6d38f80b/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/6d38f80b/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