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:28:34 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/1.0.x-fixes 0f499e72f -> 1facf515d


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

Branch: refs/heads/1.0.x-fixes
Commit: 1facf515dc8a29c5dd31ead08f87eb3ff2694691
Parents: 0f499e7
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:28:34 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/1facf515/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/1facf515/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