directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [13/26] directory-kerby git commit: DIRKRB-392 kadmin tool can login with invalid keytab.
Date Mon, 10 Aug 2015 05:15:54 GMT
DIRKRB-392 kadmin tool can login with invalid keytab.


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

Branch: refs/heads/pkinit-support
Commit: 60c85faff9234dc0fa8cba432cf88501b7243630
Parents: 14025c7
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Thu Aug 6 15:51:51 2015 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Thu Aug 6 15:51:51 2015 +0800

----------------------------------------------------------------------
 .../apache/kerby/kerberos/kerb/client/KrbClientSettingTest.java    | 2 +-
 .../java/org/apache/kerby/kerberos/kerb/client/JaasKrbUtil.java    | 2 +-
 .../main/java/org/apache/kerby/kerberos/tool/kadmin/AuthUtil.java  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/60c85faf/kerby-kerb/kerb-client/src/test/java/org/apache/kerby/kerberos/kerb/client/KrbClientSettingTest.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-client/src/test/java/org/apache/kerby/kerberos/kerb/client/KrbClientSettingTest.java
b/kerby-kerb/kerb-client/src/test/java/org/apache/kerby/kerberos/kerb/client/KrbClientSettingTest.java
index e90d3bb..c864099 100644
--- a/kerby-kerb/kerb-client/src/test/java/org/apache/kerby/kerberos/kerb/client/KrbClientSettingTest.java
+++ b/kerby-kerb/kerb-client/src/test/java/org/apache/kerby/kerberos/kerb/client/KrbClientSettingTest.java
@@ -28,7 +28,7 @@ public class KrbClientSettingTest {
 
     @Test
     public void testKdcServerMannualSetting() throws KrbException {
-        KrbClient krbClient = new KrbClient();
+        KrbClient krbClient = new KrbClient(new KrbConfig());
 
         krbClient.setKdcHost("localhost");
         krbClient.setKdcRealm("TEST2.COM");

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/60c85faf/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/client/JaasKrbUtil.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/client/JaasKrbUtil.java
b/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/client/JaasKrbUtil.java
index c03a98e..c5f10bc 100644
--- a/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/client/JaasKrbUtil.java
+++ b/kerby-kerb/kerb-simplekdc/src/main/java/org/apache/kerby/kerberos/kerb/client/JaasKrbUtil.java
@@ -130,7 +130,7 @@ public final class JaasKrbUtil {
             options.put("doNotPrompt", "true");
             options.put("renewTGT", "false");
             options.put("refreshKrb5Config", "true");
-            options.put("isInitiator", "false");
+            options.put("isInitiator", "true");
             options.put("debug", String.valueOf(ENABLE_DEBUG));
 
             return new AppConfigurationEntry[]{

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/60c85faf/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/AuthUtil.java
----------------------------------------------------------------------
diff --git a/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/AuthUtil.java
b/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/AuthUtil.java
index 8b79e83..35499b9 100644
--- a/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/AuthUtil.java
+++ b/kerby-tool/kdc-tool/src/main/java/org/apache/kerby/kerberos/tool/kadmin/AuthUtil.java
@@ -129,7 +129,7 @@ public class AuthUtil {
             options.put("doNotPrompt", "true");
             options.put("renewTGT", "false");
             options.put("refreshKrb5Config", "true");
-            options.put("isInitiator", "false");
+            options.put("isInitiator", "true");
             options.put("debug", String.valueOf(enableDebug));
 
             return new AppConfigurationEntry[]{


Mime
View raw message