directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yan...@apache.org
Subject [2/2] directory-kerby git commit: kinit is enhanced to request a service ticket
Date Tue, 03 Nov 2015 12:36:48 GMT
kinit is enhanced to request a service ticket


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

Branch: refs/heads/master
Commit: ed68699363ac6608af0a956ff95702aa88dd68ed
Parents: 8123246
Author: yaningxu <yaning0123@gmail.com>
Authored: Tue Nov 3 20:32:23 2015 +0800
Committer: yaningxu <yaning0123@gmail.com>
Committed: Tue Nov 3 20:32:23 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/tool/kinit/KinitTool.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/ed686993/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/kinit/KinitTool.java
----------------------------------------------------------------------
diff --git a/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/kinit/KinitTool.java
b/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/kinit/KinitTool.java
index 7760f34..8c06b9e 100644
--- a/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/kinit/KinitTool.java
+++ b/kerby-tool/client-tool/src/main/java/org/apache/kerby/kerberos/tool/kinit/KinitTool.java
@@ -155,14 +155,15 @@ public class KinitTool {
             System.exit(1);
         }
 
+        System.out.println("Successfully requested and stored ticket in "
+                + ccacheFile.getAbsolutePath());
         if (ktOptions.contains(KinitOption.SERVICE)) {
             String servicePrincipal = ktOptions.getStringOption(KinitOption.SERVICE);
             ServiceTicket serviceTicket =
                     krbClient.requestServiceTicketWithTgt(tgt, servicePrincipal);
-            System.out.println(serviceTicket.toString());
+            System.out.println("Successfully requested the service ticket for " + servicePrincipal
+            + "\nKey version: " + serviceTicket.getTicket().getTktvno());
         }
-        System.out.println("Successfully requested and stored ticket in "
-                + ccacheFile.getAbsolutePath());
     }
 
     /**


Mime
View raw message