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: Update the start doc.
Date Mon, 25 Dec 2017 03:30:23 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/has-project 2247b985e -> f0b7b230d


Update the start doc.


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

Branch: refs/heads/has-project
Commit: f0b7b230d564fb244b2a1f9ae0e018cd5b359862
Parents: 2247b98
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Mon Dec 25 11:26:47 2017 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Mon Dec 25 11:26:47 2017 +0800

----------------------------------------------------------------------
 has/doc/has-start.md                                              | 3 +++
 .../apache/kerby/has/tool/client/hclient/HasClientLoginTool.java  | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/f0b7b230/has/doc/has-start.md
----------------------------------------------------------------------
diff --git a/has/doc/has-start.md b/has/doc/has-start.md
index 30f6567..65589f2 100644
--- a/has/doc/has-start.md
+++ b/has/doc/has-start.md
@@ -8,6 +8,9 @@ How to start
 git clone https://github.com/apache/directory-kerby.git -b has-project
 ```
 
+### Apply the example plugin patch
+Download from https://github.com/plusplusjiajia/HAS-plugins/blob/master/AWS.patch
+
 ### Install HAS:
 ```
 cd directory-kerby/has

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/f0b7b230/has/has-tool/has-client-tool/src/main/java/org/apache/kerby/has/tool/client/hclient/HasClientLoginTool.java
----------------------------------------------------------------------
diff --git a/has/has-tool/has-client-tool/src/main/java/org/apache/kerby/has/tool/client/hclient/HasClientLoginTool.java
b/has/has-tool/has-client-tool/src/main/java/org/apache/kerby/has/tool/client/hclient/HasClientLoginTool.java
index f423a3b..d9a0dd0 100644
--- a/has/has-tool/has-client-tool/src/main/java/org/apache/kerby/has/tool/client/hclient/HasClientLoginTool.java
+++ b/has/has-tool/has-client-tool/src/main/java/org/apache/kerby/has/tool/client/hclient/HasClientLoginTool.java
@@ -119,6 +119,7 @@ public class HasClientLoginTool {
             }
             String host = hasConfig.getHttpsHost();
             String port = hasConfig.getHttpsPort();
+            String type = hasConfig.getPluginName();
 
             HasClient hasClient = new HasClient();
             TgtTicket tgtTicket;
@@ -135,7 +136,7 @@ public class HasClientLoginTool {
             Subject subject = null;
             try {
                 subject = HasJaasLoginUtil.loginUserFromTgtTicket(
-                    "https://" + host + ":" + port + "/has/v1?auth_type=RAM");
+                    "https://" + host + ":" + port + "/has/v1?auth_type=" + type);
             } catch (IOException e) {
                 System.err.println("Errors occurred when login user with TGT. " + e.getMessage());
                 return;


Mime
View raw message