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: DIRKRB-598 Modify the order of parsing command in KadminTool. Contributed by Qing.
Date Fri, 22 Jul 2016 06:22:00 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk e043a52ab -> 57d22c045


DIRKRB-598 Modify the order of parsing command in KadminTool. Contributed by Qing.


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

Branch: refs/heads/trunk
Commit: 57d22c045ed43aa3ab9971eba02280eaac26613b
Parents: e043a52
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Fri Jul 22 14:27:55 2016 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Fri Jul 22 14:27:55 2016 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/tool/kadmin/KadminTool.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/57d22c04/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/KadminTool.java
----------------------------------------------------------------------
diff --git a/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/KadminTool.java
b/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/KadminTool.java
index add63a4..42e70b6 100644
--- a/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/KadminTool.java
+++ b/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/KadminTool.java
@@ -145,13 +145,13 @@ public class KadminTool {
         } else if (command.startsWith("change_password")
                 || command.startsWith("cpw")) {
             executor = new ChangePasswordCommand(kadmin);
-        } else if (command.startsWith("get_principal") || command.startsWith("getprinc")
-                || command.startsWith("Get principal")) {
-            executor = new GetPrincipalCommand(kadmin);
         } else if (command.startsWith("list_principals")
                 || command.startsWith("listprincs") || command.startsWith("get_principals")
                 || command.startsWith("getprincs") || command.startsWith("List principals"))
{
             executor = new ListPrincipalCommand(kadmin);
+        } else if (command.startsWith("get_principal") || command.startsWith("getprinc")
+                || command.startsWith("Get principal")) {
+            executor = new GetPrincipalCommand(kadmin);
         }
         if (executor == null) {
             System.out.println("Unknown request \"" + command + "\". Type \"?\" for a request
list.");


Mime
View raw message