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: Implement kinit -P, -p
Date Tue, 08 Aug 2017 06:26:45 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 308e7b9b6 -> 6080d5590


Implement kinit -P, -p


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

Branch: refs/heads/trunk
Commit: 6080d5590f3c0fa24a92c9f9821c11024f035737
Parents: 308e7b9
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Tue Aug 8 14:26:21 2017 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Tue Aug 8 14:26:21 2017 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kerb/client/KrbKdcOption.java | 2 ++
 .../apache/kerby/kerberos/kerb/client/request/KdcRequest.java    | 4 ++++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/6080d559/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbKdcOption.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbKdcOption.java
b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbKdcOption.java
index 606a58e..a9f457a 100644
--- a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbKdcOption.java
+++ b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/KrbKdcOption.java
@@ -35,6 +35,8 @@ public enum KrbKdcOption implements KOption {
         KrbOptionGroup.KDC_FLAGS)),
     PROXIABLE(new KOptionInfo("-p", "proxiable",
         KrbOptionGroup.KDC_FLAGS)),
+    NOT_PROXIABLE(new KOptionInfo("-P", "not proxiable",
+        KrbOptionGroup.KDC_FLAGS)),
     REQUEST_ANONYMOUS(new KOptionInfo("-n",
         "request anonymous", KrbOptionGroup.KDC_FLAGS)),
     VALIDATE(new KOptionInfo("-v", "validate",

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/6080d559/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/KdcRequest.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/KdcRequest.java
b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/KdcRequest.java
index a605b1e..fe2e1e1 100644
--- a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/KdcRequest.java
+++ b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/KdcRequest.java
@@ -434,6 +434,10 @@ public abstract class KdcRequest {
                     krbKdcOption = KrbKdcOption.FORWARDABLE;
                     flagValue = !flagValue;
                 }
+                if (kOpt.equals(KrbKdcOption.NOT_PROXIABLE)) {
+                    krbKdcOption = KrbKdcOption.PROXIABLE;
+                    flagValue = !flagValue;
+                }
                 KdcOption kdcOption = KdcOption.valueOf(krbKdcOption.name());
                 kdcOptions.setFlag(kdcOption, flagValue);
             }


Mime
View raw message