directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dran...@apache.org
Subject directory-kerby git commit: DIRKRB-210 Fix setting common options in KdcSever. Contributed by Jiajia
Date Tue, 07 Apr 2015 14:08:24 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master 61212befe -> b73d5116d


DIRKRB-210 Fix setting common options in KdcSever. Contributed by Jiajia


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

Branch: refs/heads/master
Commit: b73d5116dab2380268c91fa11b611706d3e6ea8e
Parents: 61212be
Author: Drankye <drankye@gmail.com>
Authored: Wed Apr 8 06:05:50 2015 +0800
Committer: Drankye <drankye@gmail.com>
Committed: Wed Apr 8 06:05:50 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/kerby/kerberos/kerb/server/KdcServer.java    | 4 ++--
 .../org/apache/kerby/kerberos/kerb/server/KdcServerOption.java   | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/b73d5116/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServer.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServer.java
b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServer.java
index 1692f7f..8671651 100644
--- a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServer.java
+++ b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServer.java
@@ -119,11 +119,11 @@ public class KdcServer {
      * @param workDir
      */
     public void setWorkDir(File workDir) {
-        commonOptions.add(KdcServerOption.USE_EVENT_MODEL);
+        commonOptions.add(KdcServerOption.WORK_DIR, workDir);
     }
 
     public void enableDebug() {
-        commonOptions.add(KdcServerOption.USE_EVENT_MODEL);
+        commonOptions.add(KdcServerOption.ENABLE_DEBUG);
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/b73d5116/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServerOption.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServerOption.java
b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServerOption.java
index 652bae1..63a952d 100644
--- a/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServerOption.java
+++ b/kerby-kerb/kerb-server/src/main/java/org/apache/kerby/kerberos/kerb/server/KdcServerOption.java
@@ -36,6 +36,8 @@ public enum KdcServerOption implements KOption {
     KDC_TCP_PORT("kdc tcp port", KOptionType.INT),
     ALLOW_UDP("allow udp", KOptionType.BOOL),
     KDC_UDP_PORT("kdc udp port", KOptionType.INT),
+    WORK_DIR("work dir", KOptionType.DIR),
+    ENABLE_DEBUG("enable debug", KOptionType.BOOL),
     ;
 
     private String name;


Mime
View raw message